From 7c4cfc5c047725e6c4c20e9adaa1ef4e70ff68d1 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Fri, 19 Apr 1996 16:10:53 +0000 Subject: NetBSD 960317 merge --- sys/lib/libkern/skpc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/lib/libkern/skpc.c') 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 +#include 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); } -- cgit v1.2.3