rem: client_sockaddr(fd, &ss, &ss_len);
add: if (getenv("SSH_CLIENT") != NULL) {  #ifdef INET6 int af = AF_INET6; struct sockaddr_in6 sin; #else int af = AF_INET; struct sockaddr_in sin; #endif socklen_t sin_len = sizeof sin;
context: char *client_name(int fd){	struct sockaddr_storage ss;	socklen_t ss_len = sizeof ss;	static char name_buf[100];	static char port_buf[100];	static int initialised;	if (initialised) return name_buf;	strcpy(name_buf, default_name);	initialised = 1;	client_sockaddr(fd, &ss, &ss_len);	if (!lookup_name(fd, &ss, ss_len, name_buf, sizeof name_buf,			 port_buf, sizeof port_buf))		check_name(fd, &ss, name_buf);	return name_buf;}