summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2002-01-03 00:25:57 +0000
committerDJ Delorie <dj@delorie.com>2002-01-03 00:25:57 +0000
commit7a28a47446c403d7ab195b4d55a220a78883c1e6 (patch)
treef55975157a43c61f219975669800385409a29583 /libiberty
parentf2374033646825b85844750de03d939921822ee3 (diff)
downloadbinutils-redhat-7a28a47446c403d7ab195b4d55a220a78883c1e6.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog3
-rw-r--r--libiberty/cp-demangle.c2
-rw-r--r--libiberty/cplus-dem.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 9292971927..fdccb59ab4 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,5 +1,8 @@
2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * cp-demangle.c (long_options): Const-ify.
+ * cplus-dem.c (long_options): Likewise.
+
* cplus-dem.c (mystrstr): Delete. All callers changed to use
strstr instead.
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index b61ff2c2c5..457a09f4c1 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -3945,7 +3945,7 @@ print_usage (fp, exit_value)
}
/* Option specification for getopt_long. */
-static struct option long_options[] =
+static const struct option long_options[] =
{
{ "help", no_argument, NULL, 'h' },
{ "strict", no_argument, NULL, 's' },
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 691eb7135d..5af8826368 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -4947,7 +4947,7 @@ extern int prepends_underscore;
int strip_underscore = 0;
-static struct option long_options[] = {
+static const struct option long_options[] = {
{"strip-underscores", no_argument, 0, '_'},
{"format", required_argument, 0, 's'},
{"help", no_argument, 0, 'h'},