summaryrefslogtreecommitdiff
path: root/binutils/srconv.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-19 16:17:38 +0000
committerNick Clifton <nickc@redhat.com>2007-07-19 16:17:38 +0000
commit0e51e5553c649fbde45e5b60bd56cb025cedfabd (patch)
tree39156ae8283c687fbcbf668961eb560eaea0e9bc /binutils/srconv.c
parent44efa07abfe172788c7dea691ceb5ee8e0135f12 (diff)
downloadbinutils-gdb-0e51e5553c649fbde45e5b60bd56cb025cedfabd.tar.gz
PR binutils/4802
* srconv.c (strip_suffix): Add const qualifier to argument
Diffstat (limited to 'binutils/srconv.c')
-rw-r--r--binutils/srconv.c7
1 files changed, 3 insertions, 4 deletions
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;