From: Nick Clifton Date: Thu, 19 Jul 2007 16:17:38 +0000 (+0000) Subject: PR binutils/4802 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e51e5553c649fbde45e5b60bd56cb025cedfabd;p=binutils-gdb.git PR binutils/4802 * srconv.c (strip_suffix): Add const qualifier to argument --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 79ac1648eef..8a2c6d6715f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2007-07-19 Nick Clifton + + PR binutils/4802 + * srconv.c (strip_suffix): Add const qualifier to argument. + 2007-07-16 Nick Clifton * po/uk.po: New Ukrainian translation. diff --git a/binutils/srconv.c b/binutils/srconv.c index 8d1db3b0cd3..914c2607168 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -46,7 +46,7 @@ static char **rnames; static int get_member_id (int); static int get_ordinary_id (int); static char *section_translate (char *); -static char *strip_suffix (char *); +static char *strip_suffix (const char *); static void checksum (FILE *, unsigned char *, int, int); static void writeINT (int, unsigned char *, int *, int, FILE *); static void writeBITS (int, unsigned char *, int *, int); @@ -142,9 +142,8 @@ section_translate (char *n) #define DATE "940201073000"; /* Just a time on my birthday */ -static -char * -strip_suffix (char *name) +static char * +strip_suffix (const char *name) { int i; char *res;