summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/str.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-05-22 15:34:00 +0000
committerjmallett <jmallett@FreeBSD.org>2002-05-22 15:34:00 +0000
commita743481874ce384bc57c84574361b94b99991ee8 (patch)
treefdb8dce7a688f2f2ae79850004bbdb84318499ae /usr.bin/make/str.c
parent7d529109a8eef4f08e3bc6a3f4776582eab7765f (diff)
downloadFreeBSD-src-a743481874ce384bc57c84574361b94b99991ee8.zip
FreeBSD-src-a743481874ce384bc57c84574361b94b99991ee8.tar.gz
str_concat() doesn't really take const arguments.
Submitted by: bde Pointy hat to: jmallett
Diffstat (limited to 'usr.bin/make/str.c')
-rw-r--r--usr.bin/make/str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c
index 1b14426..0475759 100644
--- a/usr.bin/make/str.c
+++ b/usr.bin/make/str.c
@@ -87,7 +87,7 @@ str_end()
*/
char *
str_concat(s1, s2, flags)
- const char *s1, *s2;
+ char *s1, *s2;
int flags;
{
int len1, len2;
@@ -117,8 +117,8 @@ str_concat(s1, s2, flags)
/* free original strings */
if (flags & STR_DOFREE) {
- (void)efree((void *)s1);
- (void)efree((void *)s2);
+ (void)efree(s1);
+ (void)efree(s2);
}
return(result);
}
OpenPOWER on IntegriCloud