summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/herror.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-03-25 13:24:11 +0000
committerotto <otto@openbsd.org>2005-03-25 13:24:11 +0000
commitdb5b349cf7aa19c2b6169fbb65597f2e741714ab (patch)
tree3225f0ae035a80a4448da2c70fd7f41f085c275b /lib/libc/net/herror.c
parentwhitespace (diff)
downloadwireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.tar.xz
wireguard-openbsd-db5b349cf7aa19c2b6169fbb65597f2e741714ab.zip
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/net/herror.c')
-rw-r--r--lib/libc/net/herror.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/net/herror.c b/lib/libc/net/herror.c
index 64d4d55486e..c1e5a4ba56e 100644
--- a/lib/libc/net/herror.c
+++ b/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");