summaryrefslogtreecommitdiffstats
path: root/libc/inet/herror.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 04:03:33 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 04:03:33 +0000
commitcb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8 (patch)
tree520f8e8d113184cfa7954ebd274564b8c255fa9a /libc/inet/herror.c
parente4461be66e2655058aef358b00050bc70ac72861 (diff)
downloaduClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.bz2
uClibc-alpine-cb6a88484ce0b5ffba2fe98a40e2d51f4af92eb8.tar.xz
Merge from trunk. Going pretty good so far. Kind of. Okay, not really.
Diffstat (limited to 'libc/inet/herror.c')
-rw-r--r--libc/inet/herror.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/inet/herror.c b/libc/inet/herror.c
index 2f0797b91..66626c0a8 100644
--- a/libc/inet/herror.c
+++ b/libc/inet/herror.c
@@ -23,6 +23,10 @@
#include <string.h>
#include <netdb.h>
+libc_hidden_proto(fprintf)
+libc_hidden_proto(__h_errno_location)
+libc_hidden_proto(stderr)
+
static const char *error_msg = "Resolver error";
static const char *const h_errlist[] = {
"Error 0",
@@ -36,7 +40,8 @@ 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)
+libc_hidden_proto(herror)
+void herror(const char *s)
{
static const char colon_space[] = ": ";
const char *p;
@@ -52,7 +57,7 @@ void attribute_hidden __herror(const char *s)
}
fprintf(stderr, "%s%s%s\n", s, c, p);
}
-strong_alias(__herror,herror)
+libc_hidden_def(herror)
const char *hstrerror(int err)