summaryrefslogtreecommitdiff
path: root/libiberty/strerror.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2001-10-07 17:24:36 +0000
committerDJ Delorie <dj@delorie.com>2001-10-07 17:24:36 +0000
commit5849f895508122d117627bfddf595a51eedab5c0 (patch)
treeb60cf6a44d847600bfe9337c565df06e95d20694 /libiberty/strerror.c
parent6aaed9d2f5048ee39103ba0782588562e726d98d (diff)
downloadgdb-5849f895508122d117627bfddf595a51eedab5c0.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/strerror.c')
-rw-r--r--libiberty/strerror.c10
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 ();