]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Polish debugpred code a bit.
authorUlrich Drepper <drepper@redhat.com>
Sat, 1 Aug 2009 17:07:24 +0000 (10:07 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 1 Aug 2009 17:07:24 +0000 (10:07 -0700)
src/ChangeLog
src/debugpred.h

index 7e0b25b710d01ac2c57d28ea3a041346155e57ab..19e034ae1989059368b4bea248bd97a04b668ba4 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-01  Ulrich Drepper  <drepper@redhat.com>
+
+       * debugpred.h: Add two most const.
+
 2009-07-26  Mark Wielaard  <mjw@redhat.com>
 
        * elflint.c (check_note_data): Recognize NT_GNU_GOLD_VERSION.
index 867f4ace3621530447844f295e7466abe974b5bd..41d46796a6fc08ed4254308af06e37b5cadfc4b8 100644 (file)
@@ -30,7 +30,7 @@
 extern const unsigned long int __start_predict_data;
 extern const unsigned long int __stop_predict_data;
 extern const unsigned long int __start_predict_line;
-extern const char *__start_predict_file;
+extern const char *const __start_predict_file;
 
 static void
 __attribute__ ((destructor))
@@ -39,7 +39,7 @@ predprint (void)
   const unsigned long int *s = &__start_predict_data;
   const unsigned long int *e = &__stop_predict_data;
   const unsigned long int *sl = &__start_predict_line;
-  const char **sf = &__start_predict_file;
+  const char *const *sf = &__start_predict_file;
   while (s < e)
     {
       if (s[0] != 0 || s[1] != 0)