summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/skpc.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-04-19 16:10:53 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-04-19 16:10:53 +0000
commit7c4cfc5c047725e6c4c20e9adaa1ef4e70ff68d1 (patch)
treed415490c429995abee8d4ce27fac8216028a989c /sys/lib/libkern/skpc.c
parent6b3902486151983e34413a0e5a4bead588217855 (diff)
NetBSD 960317 merge
Diffstat (limited to 'sys/lib/libkern/skpc.c')
-rw-r--r--sys/lib/libkern/skpc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/lib/libkern/skpc.c b/sys/lib/libkern/skpc.c
index 298af88fcaf..e710ca639b0 100644
--- a/sys/lib/libkern/skpc.c
+++ b/sys/lib/libkern/skpc.c
@@ -1,4 +1,5 @@
-/* $NetBSD: skpc.c,v 1.2 1994/10/26 06:42:43 cgd Exp $ */
+/* $OpenBSD: skpc.c,v 1.2 1996/04/19 16:09:36 niklas Exp $ */
+/* $NetBSD: skpc.c,v 1.3 1996/03/14 18:52:18 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989 Regents of the University of California.
@@ -36,16 +37,17 @@
*/
#include <sys/types.h>
+#include <lib/libkern/libkern.h>
int
skpc(mask, size, cp)
register int mask;
- u_int size;
+ size_t size;
register u_char *cp;
{
register u_char *end = &cp[size];
- while (cp < end && *cp == mask)
+ while (cp < end && *cp == (u_char) mask)
cp++;
return (end - cp);
}