[PATCH 4/6] stabs.c: misc constification
tbsaunde+binutils@tbsaunde.org
tbsaunde+binutils@tbsaunde.org
Wed Feb 17 04:00:00 GMT 2016
More information about the Binutils mailing list
Wed Feb 17 04:00:00 GMT 2016
- Previous message (by thread): [PATCH 5/6] read.c: constify _bfd_rel::name
- Next message (by thread): [PATCH 0/6] misc constification of strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Trevor Saunders <tbsaunde@tbsaunde.org> gas/ChangeLog: 2016-02-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * stabs.c (s_stab_generic): make type of stab_secname, stabstr_secname and string const char *. --- gas/stabs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gas/stabs.c b/gas/stabs.c index 8343315..3883178 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -34,7 +34,7 @@ int outputting_stabs_line_debug = 0; -static void s_stab_generic (int, char *, char *); +static void s_stab_generic (int, const char *, const char *); static void generate_asm_file (int, char *); /* Allow backends to override the names used for the stab sections. */ @@ -176,10 +176,12 @@ aout_process_stab (what, string, type, other, desc) kinds of stab sections. */ static void -s_stab_generic (int what, char *stab_secname, char *stabstr_secname) +s_stab_generic (int what, const char *stab_secname, + const char *stabstr_secname) { long longint; - char *string, *saved_string_obstack_end; + const char *string; + char *saved_string_obstack_end; int type; int other; int desc; -- 2.7.0
- Previous message (by thread): [PATCH 5/6] read.c: constify _bfd_rel::name
- Next message (by thread): [PATCH 0/6] misc constification of strings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list