diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 11:28:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 11:28:06 +0000 |
commit | bbaba878aa18c93c4d0a48143d4d3eebadf02529 (patch) | |
tree | d4f1510d32398e3b6406bb70d4034f1083e92842 /libc/misc | |
parent | f3124528fa3410a29442d7a1f2d433a9d2e8abbd (diff) |
create an alias for internal usage
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/error/error.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index b51177e35..60605c212 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -35,7 +35,8 @@ extern int __putc(int c, FILE *stream) attribute_hidden; /* This variable is incremented each time `error' is called. */ -unsigned int error_message_count; +unsigned int error_message_count = 0; +hidden_strong_alias(error_message_count, __error_message_count) /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ int error_one_per_line; @@ -54,7 +55,7 @@ void __error (int status, int errnum, const char *message, ...) va_start (args, message); vfprintf (stderr, message, args); va_end (args); - ++error_message_count; + ++__error_message_count; if (errnum) { fprintf (stderr, ": %s", strerror (errnum)); } @@ -90,7 +91,7 @@ void __error_at_line (int status, int errnum, const char *file_name, vfprintf (stderr, message, args); va_end (args); - ++error_message_count; + ++__error_message_count; if (errnum) { fprintf (stderr, ": %s", strerror (errnum)); } |