diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-09 04:16:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-09 04:16:44 +0000 |
commit | 446ae833204559024dcbf4bfedda3740978ceb67 (patch) | |
tree | c7591685298169fa39736ec0e5d569c68e49f8a4 | |
parent | 16dbcae6eda68a070192171f2ff87299033d91c7 (diff) |
did ever compile?
-rw-r--r-- | sys/lib/libkern/locc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/lib/libkern/locc.c b/sys/lib/libkern/locc.c index 557e06390dd..59c226df4d3 100644 --- a/sys/lib/libkern/locc.c +++ b/sys/lib/libkern/locc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: locc.c,v 1.2 1997/11/07 15:56:42 niklas Exp $ */ +/* $OpenBSD: locc.c,v 1.3 2001/07/09 04:16:43 mickey Exp $ */ /* $NetBSD: locc.c,v 1.2 1994/10/26 06:42:29 cgd Exp $ */ /* @@ -37,14 +37,15 @@ */ #include <sys/types.h> +#include <lib/libkern/libkern.h> int -locc(mask, size, cp) +locc(mask, cp, size) register int mask; u_int size; - register u_char *cp; + register char *cp; { - register u_char *end = &cp[size]; + register char *end = &cp[size]; while (cp < end && *cp != mask) cp++; |