X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/fde045cd778e6b1f6ecb6189ed869e2a34195593..d051056f921f465c487a85f9fa29a2324332bc4b:/clientname.c diff --git a/clientname.c b/clientname.c index 7b36f78b..6d70827c 100644 --- a/clientname.c +++ b/clientname.c @@ -34,7 +34,6 @@ #include "rsync.h" static const char default_name[] = "UNKNOWN"; -extern int am_daemon; extern int am_server; @@ -189,7 +188,7 @@ void client_sockaddr(int fd, memset(sin, 0, sizeof *sin); sin->sin_family = AF_INET; *ss_len = sizeof (struct sockaddr_in); -#if HAVE_SOCKADDR_IN_LEN +#ifdef HAVE_SOCKADDR_IN_LEN sin->sin_len = *ss_len; #endif sin->sin_port = sin6.sin6_port; @@ -321,7 +320,6 @@ int check_name(int fd, return error; } - /* Given all these results, we expect that one of them will be * the same as ss. The comparison is a bit complicated. */ for (res = res0; res; res = res->ai_next) {