summaryrefslogtreecommitdiff
path: root/libc/inet/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/herror.c')
-rw-r--r--libc/inet/herror.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/inet/herror.c b/libc/inet/herror.c
index 2f0797b91..6efbc2f93 100644
--- a/libc/inet/herror.c
+++ b/libc/inet/herror.c
@@ -23,6 +23,8 @@
#include <string.h>
#include <netdb.h>
+libc_hidden_proto(fprintf)
+
static const char *error_msg = "Resolver error";
static const char *const h_errlist[] = {
"Error 0",
@@ -36,7 +38,7 @@ static const int h_nerr = { sizeof(h_errlist)/sizeof(h_errlist[0]) };
/*
* herror -- print the error indicated by the h_errno value.
*/
-void attribute_hidden __herror(const char *s)
+void herror(const char *s)
{
static const char colon_space[] = ": ";
const char *p;
@@ -52,7 +54,8 @@ void attribute_hidden __herror(const char *s)
}
fprintf(stderr, "%s%s%s\n", s, c, p);
}
-strong_alias(__herror,herror)
+libc_hidden_proto(herror)
+libc_hidden_def(herror)
const char *hstrerror(int err)