diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-10-07 14:45:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-10-07 14:45:04 +0000 |
commit | 0be6abca220b75aa5a3394fc1f89705aa37c0ebf (patch) | |
tree | a0690de0f4f882e39e15d7ffb604d61ec38915f9 /libiberty/strerror.c | |
parent | 59d42021f94fd5aa07147cb63d9187c93f4f13b9 (diff) |
demangle.h (demangler_engine): Const-ify.
include:
* demangle.h (demangler_engine): Const-ify.
* libiberty.h (buildargv): Likewise.
libiberty:
* argv.c (buildargv, tests, main): Const-ify.
* cp-demangle.c (operator_code): Likewise.
* cplus-dem.c (optable, libiberty_demanglers,
cplus_demangle_set_style, cplus_demangle_name_to_style,
print_demangler_list): Likewise.
* hashtab.c (higher_prime_number): Likewise.
* strcasecmp.c (charmap): Likewise.
* strerror.c (error_info, strerror, main): Likewise.
* strncasecmp.c (charmap): Likewise.
* strsignal.c (signal_info): Likewise.
From-SVN: r46060
Diffstat (limited to 'libiberty/strerror.c')
-rw-r--r-- | libiberty/strerror.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libiberty/strerror.c b/libiberty/strerror.c index 6e42f9ec556..046ffe6a1b7 100644 --- a/libiberty/strerror.c +++ b/libiberty/strerror.c @@ -58,10 +58,10 @@ static void init_error_tables PARAMS ((void)); struct error_info { - int value; /* The numeric value from <errno.h> */ - const char *name; /* The equivalent symbolic value */ + const int value; /* The numeric value from <errno.h> */ + const char *const name; /* The equivalent symbolic value */ #ifndef HAVE_SYS_ERRLIST - const char *msg; /* Short message about this value */ + const char *const msg; /* Short message about this value */ #endif }; @@ -625,7 +625,7 @@ char * strerror (errnoval) int errnoval; { - char *msg; + const char *msg; static char buf[32]; #ifndef HAVE_SYS_ERRLIST @@ -783,7 +783,7 @@ main () int errn; int errnmax; const char *name; - char *msg; + const char *msg; char *strerror (); errnmax = errno_max (); |