diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-07-10 19:54:16 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-07-10 19:54:16 -0400 |
commit | a88a8c0b5157f36f7f99241a6409a12ea692fb6e (patch) | |
tree | 2724d965f0e59c284615c27a0966e08d063e456f /gcc/protoize.c | |
parent | b7e043ad10311e5b687bb722f92a796b0957e6fa (diff) | |
download | gcc-a88a8c0b5157f36f7f99241a6409a12ea692fb6e.tar.gz |
(reverse_def_dec_list): Delete const qualifiers from local variables,
and delete casts which were casting away const.
From-SVN: r10113
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r-- | gcc/protoize.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c index fdcf28908bd..de7e71ce92b 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -2540,8 +2540,8 @@ reverse_def_dec_list (hp) const hash_table_entry *hp; { file_info *file_p = hp->fip; - const def_dec_info *prev = NULL; - const def_dec_info *current = file_p->defs_decs; + def_dec_info *prev = NULL; + def_dec_info *current = file_p->defs_decs; if (!( current = file_p->defs_decs)) return; /* no list to reverse */ @@ -2550,13 +2550,13 @@ reverse_def_dec_list (hp) if (! (current = current->next_in_file)) return; /* can't reverse a single list element */ - ((NONCONST def_dec_info *) prev)->next_in_file = NULL; + prev->next_in_file = NULL; while (current) { - const def_dec_info *next = current->next_in_file; + def_dec_info *next = current->next_in_file; - ((NONCONST def_dec_info *) current)->next_in_file = prev; + current->next_in_file = prev; prev = current; current = next; } |