diff options
author | imp <imp@FreeBSD.org> | 1999-04-25 22:29:30 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-04-25 22:29:30 +0000 |
commit | 404ab5f9ba8f886a2b4a3de13ab226213fd976bb (patch) | |
tree | ad323a333603d18cc896ee80fad1f67b354df9de /lib/libc/string/strcat.c | |
parent | 8b33b875effcc83c5a2de2bd72e2c70b04652373 (diff) | |
download | FreeBSD-src-404ab5f9ba8f886a2b4a3de13ab226213fd976bb.zip FreeBSD-src-404ab5f9ba8f886a2b4a3de13ab226213fd976bb.tar.gz |
More egcs warning fixes:
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
o Use parens around assignment values used as truth values.
o Remove unused function.
Reviewed by: obrien and chuckr
Diffstat (limited to 'lib/libc/string/strcat.c')
-rw-r--r-- | lib/libc/string/strcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 3436967..95dcd1d 100644 --- a/lib/libc/string/strcat.c +++ b/lib/libc/string/strcat.c @@ -45,6 +45,6 @@ strcat(s, append) char *save = s; for (; *s; ++s); - while (*s++ = *append++); + while ((*s++ = *append++)); return(save); } |