Date: Sat, 13 Sep 1997 00:33:57 PDT From: Bill Fenner <fenner@parc.xerox.com> To: Mike Smith <mike@smith.net.au> Cc: Ollivier Robert <roberto@keltia.freenix.fr>, hackers@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: Memory leak in getservbyXXX? Message-ID: <97Sep13.003407pdt.177486@crevenia.parc.xerox.com> In-Reply-To: Your message of "Fri, 12 Sep 97 22:00:50 PDT." <199709130500.OAA00675@word.smith.net.au>
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? >It should be htonl(). Nope. Port numbers are 16 bits. Bill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97Sep13.003407pdt.177486>