diff options
Diffstat (limited to 'src/lib/libc/net/herror.c')
-rw-r--r-- | src/lib/libc/net/herror.c | 12 |
1 files changed, 5 insertions, 7 deletions
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 @@ | |||
1 | /* $OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $ */ | 1 | /* $OpenBSD: herror.c,v 1.7 2005/03/25 13:24:12 otto Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1987, 1993 | 4 | * ++Copyright++ 1987, 1993 |
@@ -56,7 +56,7 @@ | |||
56 | static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; | 56 | static char sccsid[] = "@(#)herror.c 8.1 (Berkeley) 6/4/93"; |
57 | static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; | 57 | static char rcsid[] = "$From: herror.c,v 8.3 1996/08/05 08:31:35 vixie Exp $"; |
58 | #else | 58 | #else |
59 | static char rcsid[] = "$OpenBSD: herror.c,v 1.6 2005/03/02 12:26:24 millert Exp $"; | 59 | static char rcsid[] = "$OpenBSD: herror.c,v 1.7 2005/03/25 13:24:12 otto Exp $"; |
60 | #endif | 60 | #endif |
61 | #endif /* LIBC_SCCS and not lint */ | 61 | #endif /* LIBC_SCCS and not lint */ |
62 | 62 | ||
@@ -83,11 +83,10 @@ extern int h_errno; | |||
83 | * print the error indicated by the h_errno value. | 83 | * print the error indicated by the h_errno value. |
84 | */ | 84 | */ |
85 | void | 85 | void |
86 | herror(s) | 86 | herror(const char *s) |
87 | const char *s; | ||
88 | { | 87 | { |
89 | struct iovec iov[4]; | 88 | struct iovec iov[4]; |
90 | register struct iovec *v = iov; | 89 | struct iovec *v = iov; |
91 | 90 | ||
92 | if (s && *s) { | 91 | if (s && *s) { |
93 | v->iov_base = (char *)s; | 92 | v->iov_base = (char *)s; |
@@ -106,8 +105,7 @@ herror(s) | |||
106 | } | 105 | } |
107 | 106 | ||
108 | const char * | 107 | const char * |
109 | hstrerror(err) | 108 | hstrerror(int err) |
110 | int err; | ||
111 | { | 109 | { |
112 | if (err < 0) | 110 | if (err < 0) |
113 | return ("Resolver internal error"); | 111 | return ("Resolver internal error"); |