diff options
author | obrien <obrien@FreeBSD.org> | 2002-04-13 09:49:33 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-04-13 09:49:33 +0000 |
commit | dfc0fa60ce59aa31e7d6748c59a5841db5f2ef52 (patch) | |
tree | 52355d215f9c9b362145e8b940da65c3928515a4 /usr.bin/make | |
parent | 9d111f7a74dd77f07a7891acde89cb7d1ad552f0 (diff) | |
download | FreeBSD-src-dfc0fa60ce59aa31e7d6748c59a5841db5f2ef52.zip FreeBSD-src-dfc0fa60ce59aa31e7d6748c59a5841db5f2ef52.tar.gz |
Constify str_concat()
Submitted by: jmallett
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/str.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |