diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 02:26:20 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 02:26:20 +0000 |
commit | 32400d0462e856d104df455999edd2a8b7bd1764 (patch) | |
tree | f4c012235b5866963c6e20675e0a2e7910020fa5 /sys/libkern/strcat.c | |
parent | 9328688fc8b9743439e9dbe6f6364cb0317e387f (diff) | |
download | FreeBSD-src-32400d0462e856d104df455999edd2a8b7bd1764.zip FreeBSD-src-32400d0462e856d104df455999edd2a8b7bd1764.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/libkern/strcat.c')
-rw-r--r-- | sys/libkern/strcat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/strcat.c b/sys/libkern/strcat.c index 07e7923..707cb14 100644 --- a/sys/libkern/strcat.c +++ b/sys/libkern/strcat.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: strcat.c,v 1.4 1997/02/22 09:40:02 peter Exp $ */ #include <string.h> @@ -43,6 +43,6 @@ strcat(s, append) char *save = s; for (; *s; ++s); - while (*s++ = *append++); + while ((*s++ = *append++) != 0); return(save); } |