summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-06 12:21:08 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-06 12:21:08 +0000
commit59b5b3de9c0c63841bbebeda37caff5c34bf3bb0 (patch)
treec20ecd5d87edccca4c0e9d8e1536fa7e044a0a6f
parente287c7e33145b68162a0743c416d2e3d58a51d1e (diff)
Promise to not change arg 2 & 3 to scanc
-rw-r--r--sys/lib/libkern/libkern.h4
-rw-r--r--sys/lib/libkern/scanc.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/lib/libkern/libkern.h b/sys/lib/libkern/libkern.h
index 336c7f9c2ae..1ff96e94724 100644
--- a/sys/lib/libkern/libkern.h
+++ b/sys/lib/libkern/libkern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libkern.h,v 1.6 1996/08/11 20:39:08 niklas Exp $ */
+/* $OpenBSD: libkern.h,v 1.7 1996/12/06 12:21:06 niklas Exp $ */
/* $NetBSD: libkern.h,v 1.7 1996/03/14 18:52:08 christos Exp $ */
/*-
@@ -119,7 +119,7 @@ int locc __P((int, char *, u_int));
u_long random __P((void));
void srandom __P((u_long));
char *rindex __P((const char *, int));
-int scanc __P((u_int, u_char *, u_char *, int));
+int scanc __P((u_int, const u_char *, const u_char *, int));
int skpc __P((int, size_t, u_char *));
size_t strlen __P((const char *));
char *strcat __P((char *, const char *));
diff --git a/sys/lib/libkern/scanc.c b/sys/lib/libkern/scanc.c
index 66686604672..d73303a6d9f 100644
--- a/sys/lib/libkern/scanc.c
+++ b/sys/lib/libkern/scanc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scanc.c,v 1.2 1996/04/19 16:09:33 niklas Exp $ */
+/* $OpenBSD: scanc.c,v 1.3 1996/12/06 12:21:07 niklas Exp $ */
/* $NetBSD: scanc.c,v 1.3 1996/03/14 18:52:16 christos Exp $ */
/*
@@ -42,10 +42,10 @@
int
scanc(size, cp, table, mask)
u_int size;
- register u_char *cp, table[];
+ register const u_char *cp, table[];
register u_char mask;
{
- register u_char *end = &cp[size];
+ register const u_char *end = &cp[size];
while (cp < end && (table[*cp] & mask) == 0)
cp++;