diff options
| author | Warner Losh <imp@FreeBSD.org> | 1999-04-25 22:29:30 +0000 | 
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1999-04-25 22:29:30 +0000 | 
| commit | dcb0ae4ed8d8ff789903b161e53031f3f9280cc2 (patch) | |
| tree | 556cd5632da8c24c38015ac4c816c0cc5dc8d5a4 /lib/libc | |
| parent | 859663719d47f9d552103f222429ecf7530c4240 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/utf2.c | 2 | ||||
| -rw-r--r-- | lib/libc/string/memset.c | 2 | ||||
| -rw-r--r-- | lib/libc/string/strcat.c | 2 | ||||
| -rw-r--r-- | lib/libc/string/strcpy.c | 2 | 
4 files changed, 5 insertions, 3 deletions
| diff --git a/lib/libc/locale/utf2.c b/lib/libc/locale/utf2.c index c46dd93b6125..52b4cad0f40f 100644 --- a/lib/libc/locale/utf2.c +++ b/lib/libc/locale/utf2.c @@ -48,7 +48,7 @@ static char sccsid[] = "@(#)utf2.c	8.1 (Berkeley) 6/4/93";  rune_t	_UTF2_sgetrune __P((const char *, size_t, char const **));  int	_UTF2_sputrune __P((rune_t, char *, size_t, char **)); -static _utf_count[16] = { +static int _utf_count[16] = {  	1, 1, 1, 1, 1, 1, 1, 1,  	0, 0, 0, 0, 2, 2, 3, 0,  }; diff --git a/lib/libc/string/memset.c b/lib/libc/string/memset.c index 55cca110a3da..afe5f9642b83 100644 --- a/lib/libc/string/memset.c +++ b/lib/libc/string/memset.c @@ -68,7 +68,9 @@ memset(dst0, c0, length)  #endif  {  	register size_t t; +#ifndef BZERO  	register u_int c; +#endif  	register u_char *dst;  	dst = dst0; diff --git a/lib/libc/string/strcat.c b/lib/libc/string/strcat.c index 343696719b71..95dcd1d7029c 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);  } diff --git a/lib/libc/string/strcpy.c b/lib/libc/string/strcpy.c index d1791dd00c35..c9b44b13b125 100644 --- a/lib/libc/string/strcpy.c +++ b/lib/libc/string/strcpy.c @@ -45,6 +45,6 @@ strcpy(to, from)  {  	char *save = to; -	for (; *to = *from; ++from, ++to); +	for (; (*to = *from); ++from, ++to);  	return(save);  } | 
