diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-05 18:14:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-05 18:14:56 +0000 |
commit | 9f43ee66809f584e26627b5dbc9383872744ccf0 (patch) | |
tree | 35df74c37196f04b9bb43cc36a5bf90409c1656f /lib/libc/gen/gethostname.c | |
parent | bd235b6b0f4081a910b4b600d4db3bd3df9631b8 (diff) | |
download | FreeBSD-src-9f43ee66809f584e26627b5dbc9383872744ccf0.zip FreeBSD-src-9f43ee66809f584e26627b5dbc9383872744ccf0.tar.gz |
gethostname() returns int, not long. Answered my own question by
RTFM'ing. Either both the header files and the man pages are wrong
or this code is, and I'll take the majority decision. :-)
Diffstat (limited to 'lib/libc/gen/gethostname.c')
-rw-r--r-- | lib/libc/gen/gethostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index 058e4b6..64bd64d 100644 --- a/lib/libc/gen/gethostname.c +++ b/lib/libc/gen/gethostname.c @@ -38,7 +38,7 @@ static char sccsid[] = "@(#)gethostname.c 8.1 (Berkeley) 6/4/93"; #include <sys/param.h> #include <sys/sysctl.h> -long +int gethostname(name, namelen) char *name; int namelen; |