summaryrefslogtreecommitdiff
path: root/libc/inet/herror.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/inet/herror.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
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)