diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-12-08 14:25:53 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-12-08 14:25:53 +0000 |
commit | b6f29caaba4aaeb972675d67ca7c434a5e9b73a7 (patch) | |
tree | 5ef85dc039e10e57fb15b250c4ce10f81084cfa6 /sys/lib/libkern/strncmp.c | |
parent | 52aa3799b1532a9cd3e62ab778110510fca51689 (diff) |
-Wcast-qual happiness
Diffstat (limited to 'sys/lib/libkern/strncmp.c')
-rw-r--r-- | sys/lib/libkern/strncmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libkern/strncmp.c b/sys/lib/libkern/strncmp.c index 0a88e080488..60756ccc4d7 100644 --- a/sys/lib/libkern/strncmp.c +++ b/sys/lib/libkern/strncmp.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strncmp.c 5.6 (Berkeley) 1/26/91";*/ -static char *rcsid = "$Id: strncmp.c,v 1.2 1996/05/01 15:18:52 deraadt Exp $"; +static char *rcsid = "$Id: strncmp.c,v 1.3 1996/12/08 14:25:49 niklas Exp $"; #endif /* LIBC_SCCS and not lint */ #ifndef _KERNEL @@ -52,7 +52,7 @@ strncmp(s1, s2, n) return (0); do { if (*s1 != *s2++) - return (*(unsigned char *)s1 - *(unsigned char *)--s2); + return (*(const u_char *)s1 - *(const u_char *)--s2); if (*s1++ == 0) break; } while (--n != 0); |