diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:23:23 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 19:23:23 +0000 |
commit | 60155d4649bde150591fb8ce3c6b0260739ad05c (patch) | |
tree | e848c0809eae87a1a376ea3ccb32d868076984ae /libc/misc/error/error.c | |
parent | a47a8b46a57854c6cff0a6b6262cbe02bd7e6f51 (diff) |
Change to build w/ -std=c99
Diffstat (limited to 'libc/misc/error/error.c')
-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 5c1109ea0..dcc3ed8e2 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -41,8 +41,9 @@ libc_hidden_proto(stdout) libc_hidden_proto(stderr) /* This variable is incremented each time `error' is called. */ +libc_hidden_proto(error_message_count) unsigned int error_message_count = 0; -hidden_strong_alias(error_message_count, __error_message_count) +libc_hidden_def(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; @@ -61,7 +62,7 @@ attribute_hidden 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)); } @@ -97,7 +98,7 @@ attribute_hidden void __error_at_line (int status, int errnum, const char *file_ vfprintf (stderr, message, args); va_end (args); - ++__error_message_count; + ++error_message_count; if (errnum) { fprintf (stderr, ": %s", strerror (errnum)); } |