From 2f490723a2e673b2457f65c4b06cacb7d700a3e8 Mon Sep 17 00:00:00 2001 From: otto <> Date: Fri, 25 Mar 2005 13:24:12 +0000 Subject: ansify. ok deraadt@ moritz@ --- src/lib/libc/net/herror.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/lib/libc/net/herror.c') diff --git a/src/lib/libc/net/herror.c b/src/lib/libc/net/herror.c index 64d4d55486..c1e5a4ba56 100644 --- a/src/lib/libc/net/herror.c +++ b/src/lib/libc/net/herror.c @@ -1,4 +1,4 @@ -/* $OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $ */ +/* $OpenBSD: herror.c,v 1.7 2005/03/25 13:24:12 otto Exp $ */ /* * ++Copyright++ 1987, 1993 @@ -56,7 +56,7 @@ static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $"; +static char rcsid[] = "$OpenBSD: herror.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -83,11 +83,10 @@ extern int h_errno; * print the error indicated by the h_errno value. */ void -herror(s) - const char *s; +herror(const char *s) { struct iovec iov[4]; - register struct iovec *v = iov; + struct iovec *v = iov; if (s && *s) { v->iov_base = (char *)s; @@ -106,8 +105,7 @@ herror(s) } const char * -hstrerror(err) - int err; +hstrerror(int err) { if (err < 0) return ("Resolver internal error"); -- cgit v1.2.3-55-g6feb