summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/gethostname.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
committerjfb <jfb@openbsd.org>2004-05-18 02:05:52 +0000
commit73b3e3c43784cb5fd04439d34c7436bbf85871db (patch)
tree71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/gethostname.c
parentsync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff)
downloadwireguard-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.c6
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;