From owner-freebsd-bugs Sat Sep 13 00:35:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA14089 for bugs-outgoing; Sat, 13 Sep 1997 00:35:32 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id AAA14045; Sat, 13 Sep 1997 00:35:24 -0700 (PDT) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <52845(5)>; Sat, 13 Sep 1997 00:34:40 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177486>; Sat, 13 Sep 1997 00:34:07 -0700 To: Mike Smith cc: Ollivier Robert , hackers@freebsd.org, freebsd-bugs@freebsd.org Subject: Re: Memory leak in getservbyXXX? In-reply-to: Your message of "Fri, 12 Sep 97 22:00:50 PDT." <199709130500.OAA00675@word.smith.net.au> Date: Sat, 13 Sep 1997 00:33:57 PDT From: Bill Fenner Message-Id: <97Sep13.003407pdt.177486@crevenia.parc.xerox.com> 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? >It should be htonl(). Nope. Port numbers are 16 bits. Bill