diff options
author | Robin Barker <RMBarker@cpan.org> | 2007-12-21 14:30:20 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2007-12-21 14:48:22 +0000 |
commit | aab391487e4ce7ac2d97b35a504de2697fadd1b6 (patch) | |
tree | f5ccfcad7dcc2a485c904f8f35cdd5e09f31ef78 /x2p/util.c | |
parent | 3f5211dd25d06319ac363a33485c17282b4021a7 (diff) | |
download | perl-aab391487e4ce7ac2d97b35a504de2697fadd1b6.tar.gz |
C<make translators> -Wwrite-strings clean
From: "Robin Barker" <Robin.Barker@npl.co.uk>
Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399C@exchsvr2.npl.ad.local>
p4raw-id: //depot/perl@32690
Diffstat (limited to 'x2p/util.c')
-rw-r--r-- | x2p/util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/x2p/util.c b/x2p/util.c index 6994e873f7..aff3f00873 100644 --- a/x2p/util.c +++ b/x2p/util.c @@ -119,9 +119,10 @@ cpy2(register char *to, register char *from, register int delim) /* return ptr to little string in big string, NULL if not found */ char * -instr(char *big, char *little) +instr(char *big, const char *little) { - register char *t, *s, *x; + register char *t, *x; + register const char *s; for (t = big; *t; t++) { for (x=t,s=little; *s; x++,s++) { @@ -139,7 +140,7 @@ instr(char *big, char *little) /* copy a string to a safe spot */ char * -savestr(char *str) +savestr(const char *str) { register char * const newaddr = (char *) safemalloc((MEM_SIZE)(strlen(str)+1)); |