From aab391487e4ce7ac2d97b35a504de2697fadd1b6 Mon Sep 17 00:00:00 2001 From: Robin Barker Date: Fri, 21 Dec 2007 14:30:20 +0000 Subject: C -Wwrite-strings clean From: "Robin Barker" Message-ID: <46A0F33545E63740BC7563DE59CA9C6D09399C@exchsvr2.npl.ad.local> p4raw-id: //depot/perl@32690 --- x2p/util.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'x2p/util.c') 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)); -- cgit v1.2.1