From ca25e98edb0ce591067e98e94fb43305f926a681 Mon Sep 17 00:00:00 2001 From: niklas Date: Fri, 6 Dec 1996 12:21:06 +0000 Subject: [PATCH] Promise to not change arg 2 & 3 to scanc --- sys/lib/libkern/libkern.h | 4 ++-- sys/lib/libkern/scanc.c | 6 +++--- 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++; -- 2.20.1