From owner-freebsd-bugs Sat Sep 13 01:26:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA22299 for bugs-outgoing; Sat, 13 Sep 1997 01:26:01 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA22273; Sat, 13 Sep 1997 01:25:55 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id RAA01212; Sat, 13 Sep 1997 17:51:56 +0930 (CST) Message-Id: <199709130821.RAA01212@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Bill Fenner cc: Mike Smith , Ollivier Robert , hackers@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: Memory leak in getservbyXXX? In-reply-to: Your message of "Sat, 13 Sep 1997 00:33:57 PDT." <97Sep13.003407pdt.177486@crevenia.parc.xerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Sep 1997 17:51:55 +0930 From: Mike Smith Sender: owner-freebsd-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Mike Smith 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