diff options
author | 2004-08-07 00:38:32 +0000 | |
---|---|---|
committer | 2004-08-07 00:38:32 +0000 | |
commit | a26aa41994e8a6961f009870b31f84fec938f9c8 (patch) | |
tree | b69a5bc2e1eeaca538d3783d02cfd53f88cb19db /sys/lib/libkern/locc.c | |
parent | sync (diff) | |
download | wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip |
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/locc.c')
-rw-r--r-- | sys/lib/libkern/locc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/lib/libkern/locc.c b/sys/lib/libkern/locc.c index 770506325d2..c879b7ea89f 100644 --- a/sys/lib/libkern/locc.c +++ b/sys/lib/libkern/locc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: locc.c,v 1.4 2003/06/02 23:28:08 millert Exp $ */ +/* $OpenBSD: locc.c,v 1.5 2004/08/07 00:38:32 deraadt Exp $ */ /* $NetBSD: locc.c,v 1.2 1994/10/26 06:42:29 cgd Exp $ */ /* @@ -36,12 +36,9 @@ #include <lib/libkern/libkern.h> int -locc(mask, cp, size) - register int mask; - u_int size; - register char *cp; +locc(int mask, char *cp, u_int size) { - register char *end = &cp[size]; + char *end = &cp[size]; while (cp < end && *cp != mask) cp++; |