Date: Sat, 13 Sep 1997 17:51:55 +0930 From: Mike Smith <mike@smith.net.au> To: Bill Fenner <fenner@parc.xerox.com> Cc: Mike Smith <mike@smith.net.au>, Ollivier Robert <roberto@keltia.freenix.fr>, hackers@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: Memory leak in getservbyXXX? Message-ID: <199709130821.RAA01212@word.smith.net.au> In-Reply-To: Your message of "Sat, 13 Sep 1997 00:33:57 PDT." <97Sep13.003407pdt.177486@crevenia.parc.xerox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Mike Smith <mike@smith.net.au> wrote: > >This contradicts the documentation, which claims that the (port) > >argument is an int. > > Presumably because of historical argument promotion. Does anyone > actually pass shorts as shorts? Good question. Probably not, but having the argument typed correctly would help in the age of ANSI compilers. > >It should be htonl(). > > Nope. Port numbers are 16 bits. Then this counts as a PR against the manpage? mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709130821.RAA01212>