-/* $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 $ */
/*-
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 *));
-/* $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 $ */
/*
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++;