Hi tech@,

The following patch uses hostname instead of nodename to be consistent
with getaddrinfo declaration:

     int
     getaddrinfo(const char *hostname, const char *servname,
         const struct addrinfo *hints, struct addrinfo **res);

Thanks!


Index: netcat.c
===================================================================
RCS file: /cvs/src/usr.bin/nc/netcat.c,v
retrieving revision 1.192
diff -u -p -r1.192 netcat.c
--- netcat.c    10 Aug 2018 17:15:22 -0000      1.192
+++ netcat.c    3 Sep 2018 11:12:49 -0000
@@ -999,7 +999,7 @@ local_listen(char *host, char *port, str
        int s = -1, ret, x = 1, save_errno;
        int error;

-       /* Allow nodename to be null. */
+       /* Allow hostname to be null. */
        hints.ai_flags |= AI_PASSIVE;

        /*


-- 
Best Regards
Nan Xiao

Reply via email to