str_concat() doesn't really take const arguments.

Submitted by:	bde
Pointy hat to:	jmallett
This commit is contained in:
Juli Mallett 2002-05-22 15:34:00 +00:00
parent ea98f295f7
commit 8eccf3b248
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97123
2 changed files with 4 additions and 4 deletions

View file

@ -95,7 +95,7 @@ Lst Parse_MainName(void);
/* str.c */
void str_init(void);
void str_end(void);
char *str_concat(const char *, const char *, int);
char *str_concat(char *, char *, int);
char **brk_string(char *, int *, Boolean);
char *Str_FindSubstring(char *, char *);
int Str_Match(char *, char *);

View file

@ -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);
}