67630b6afe
got patched anyway. Add DragonFly. Nuke some more prototypes in files already touched.
32 lines
844 B
Text
32 lines
844 B
Text
$NetBSD: patch-ag,v 1.1 2006/01/27 17:33:55 joerg Exp $
|
|
|
|
--- hosts_access.c.orig 2006-01-27 17:22:24.000000000 +0000
|
|
+++ hosts_access.c
|
|
@@ -34,9 +34,6 @@ static char sccsid[] = "@(#) hosts_acces
|
|
#include <setjmp.h>
|
|
#include <string.h>
|
|
|
|
-extern char *fgets();
|
|
-extern int errno;
|
|
-
|
|
#ifndef INADDR_NONE
|
|
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
|
|
#endif
|
|
@@ -389,7 +386,7 @@ static void ipv6_mask(in6p, maskbits)
|
|
struct in6_addr *in6p;
|
|
int maskbits;
|
|
{
|
|
- uchar_t *p = (uchar_t*) in6p;
|
|
+ unsigned char *p = (unsigned char *) in6p;
|
|
|
|
if (maskbits < 0 || maskbits >= IPV6_ABITS)
|
|
return;
|
|
@@ -400,7 +397,7 @@ int maskbits;
|
|
if (maskbits != 0)
|
|
*p++ &= 0xff << (8 - maskbits);
|
|
|
|
- while (p < (((uchar_t*) in6p)) + sizeof(*in6p))
|
|
+ while (p < (((unsigned char *) in6p)) + sizeof(*in6p))
|
|
*p++ = 0;
|
|
}
|
|
#endif
|