diff options
| author | Ulrich Drepper <[email protected]> | 2009-08-01 10:07:24 -0700 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2009-08-01 10:07:24 -0700 |
| commit | 9ccf76a246b93ed7d5f4dd5619e79c01b15a7f05 (patch) | |
| tree | 50b0a2ed4e2d559e01f8d8f5946afd7a6005cd89 | |
| parent | 2f5b79e9348c651604795452fb4831964b3917b1 (diff) | |
Polish debugpred code a bit.
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/debugpred.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7e0b25b7..19e034ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-08-01 Ulrich Drepper <[email protected]> + + * debugpred.h: Add two most const. + 2009-07-26 Mark Wielaard <[email protected]> * elflint.c (check_note_data): Recognize NT_GNU_GOLD_VERSION. diff --git a/src/debugpred.h b/src/debugpred.h index 867f4ace..41d46796 100644 --- a/src/debugpred.h +++ b/src/debugpred.h @@ -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) |
