summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-02 10:54:48 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-02 10:54:48 +0000
commita1db18db0bacff792d1d272f8ae2c9f96a154087 (patch)
tree5eac00b3f90d4e4a1aadc41273e4271a4f084cd5 /libc/inet
parenta4ade3ea516f64b48a7495115551d8252c22e812 (diff)
Oops
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/herror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/herror.c b/libc/inet/herror.c
index 06ab6d5f8..cb89be18b 100644
--- a/libc/inet/herror.c
+++ b/libc/inet/herror.c
@@ -25,7 +25,6 @@
#ifdef L_herror
-static const char *error_msg = "Resolver error";
static const char *const h_errlist[] = {
"Error 0",
"Unknown host", /* 1 HOST_NOT_FOUND */
@@ -48,7 +47,7 @@ void herror(const char *s)
if (!s || !*s) {
c += 2;
}
- p = error_msg;
+ p = "Resolver error";
if ((h_errno >= 0) && (h_errno < h_nerr)) {
p = h_errlist[h_errno];
}
@@ -60,6 +59,7 @@ void herror(const char *s)
#ifdef L_hstrerror
const char *hstrerror(int err)
{
+ const char *error_msg = "Resolver error";
if (err < 0) {
return(error_msg);
} else if (err < h_nerr) {