diff options
author | 2004-05-18 02:05:52 +0000 | |
---|---|---|
committer | 2004-05-18 02:05:52 +0000 | |
commit | 73b3e3c43784cb5fd04439d34c7436bbf85871db (patch) | |
tree | 71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/gethostname.c | |
parent | sync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff) | |
download | wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip |
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/gethostname.c')
-rw-r--r-- | lib/libc/gen/gethostname.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index 9dc16b0c876..1a8015b52d7 100644 --- a/lib/libc/gen/gethostname.c +++ b/lib/libc/gen/gethostname.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: gethostname.c,v 1.5 2003/06/25 21:15:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: gethostname.c,v 1.6 2004/05/18 02:05:52 jfb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -36,9 +36,7 @@ static char rcsid[] = "$OpenBSD: gethostname.c,v 1.5 2003/06/25 21:15:04 deraadt #include <unistd.h> int -gethostname(name, namelen) - char *name; - size_t namelen; +gethostname(char *name, size_t namelen) { int mib[2]; size_t size; |