From dfc0fa60ce59aa31e7d6748c59a5841db5f2ef52 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 13 Apr 2002 09:49:33 +0000 Subject: Constify str_concat() Submitted by: jmallett --- usr.bin/make/str.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index 8a60a26..1c460f9 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -89,7 +89,7 @@ str_end() */ char * str_concat(s1, s2, flags) - char *s1, *s2; + const char *s1, *s2; int flags; { register int len1, len2; @@ -119,8 +119,8 @@ str_concat(s1, s2, flags) /* free original strings */ if (flags & STR_DOFREE) { - (void)free(s1); - (void)free(s2); + (void)free(__DECONST(void *, s1)); + (void)free(__DECONST(void *, s2)); } return(result); } -- cgit v1.1