From xemacs-m  Tue Feb 18 17:01:17 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA06548
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 17:01:16 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id AAA21308; Wed, 19 Feb 1997 00:01:11 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: Re: 19.15 b94 build failure, solution and subsequent success
References: <199702181756.MAA02028@verve.canada.sun.com> 	<m2n2t1rj1p.fsf@altair.xemacs.org> 	<199702182111.NAA04397@xemacs.eng.sun.com> 	<kign2t1ajrv.fsf@jagor.srce.hr> <199702182204.OAA04540@xemacs.eng.sun.com>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 19 Feb 1997 00:01:10 +0100
In-Reply-To: Martin Buchholz's message of Tue, 18 Feb 1997 14:04:13 -0800
Message-ID: <kighgj9afd5.fsf@jagor.srce.hr>
Lines: 27
X-Mailer: Gnus v5.4.13/XEmacs 19.14

Martin Buchholz <mrb@Eng.Sun.COM> writes:

> I didn't realize that having multiple prototypes
> 
> int gethostname();
> int gethostname(char *, size_t);
> 
> would not elicit a warning either from gcc -Wall or Sun cc -v.

Remember, C is not C++!  An empty prototype means only that you don't
know the parameters at the time.  I think the compilers are correct
not to warn in that case.

> Still, I think my solution for sol2.h is the correct one.

Well... :-)

> Maybe we shouldn't be using gethostname at all, when sysinfo(2) or
> uname(2) is available instead?

gethostname is an interface to uname(2) on many implementations.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
* Q: What is an experienced Emacs user?
* A: A person who wishes that the terminal had pedals.

