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
commit6ceb75eccbe633e6b739e3fa1f83c54508928aa0 (patch)
tree8c2a01e9650a36a81de20cc4f35ed2370d1e4fc0 /libiberty/strerror.c
parenta54ba73f65d07d51779a6a4a82ed70443bbdbca7 (diff)
downloadbinutils-redhat-6ceb75eccbe633e6b739e3fa1f83c54508928aa0.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 6e42f9ec55..046ffe6a1b 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 ();