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/bcmp.c | |
parent | 52aa3799b1532a9cd3e62ab778110510fca51689 (diff) |
-Wcast-qual happiness
Diffstat (limited to 'sys/lib/libkern/bcmp.c')
-rw-r--r-- | sys/lib/libkern/bcmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/lib/libkern/bcmp.c b/sys/lib/libkern/bcmp.c index 53b867e557b..68aff5a5ed8 100644 --- a/sys/lib/libkern/bcmp.c +++ b/sys/lib/libkern/bcmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcmp.c,v 1.3 1996/05/01 15:18:45 deraadt Exp $ */ +/* $OpenBSD: bcmp.c,v 1.4 1996/12/08 14:25:49 niklas Exp $ */ /* * Copyright (c) 1987 Regents of the University of California. @@ -35,7 +35,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/ -static char *rcsid = "$OpenBSD: bcmp.c,v 1.3 1996/05/01 15:18:45 deraadt Exp $"; +static char *rcsid = "$OpenBSD: bcmp.c,v 1.4 1996/12/08 14:25:49 niklas Exp $"; #endif /* LIBC_SCCS and not lint */ #ifndef _KERNEL @@ -52,12 +52,12 @@ bcmp(b1, b2, length) const void *b1, *b2; register size_t length; { - register char *p1, *p2; + register const char *p1, *p2; if (length == 0) return(0); - p1 = (char *)b1; - p2 = (char *)b2; + p1 = (const char *)b1; + p2 = (const char *)b2; do if (*p1++ != *p2++) break; |