]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
merge from gcc
authorDJ Delorie <dj@redhat.com>
Thu, 3 Jan 2002 00:25:57 +0000 (00:25 +0000)
committerDJ Delorie <dj@redhat.com>
Thu, 3 Jan 2002 00:25:57 +0000 (00:25 +0000)
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/cplus-dem.c

index 92929719275057e05c29db3186b3251d50567d98..fdccb59ab438391b6f4eb488d136e0ca389ea654 100644 (file)
@@ -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.
 
index b61ff2c2c5737f186a384053da0f004cc70e5388..457a09f4c19e4efd3344cb95751bc4300b277178 100644 (file)
@@ -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' },
index 691eb7135d4c73158e0d7e29290ab36b02a64e7a..5af8826368629a1fa86b4ad80ba3f42dd23e2720 100644 (file)
@@ -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'},