summaryrefslogtreecommitdiff
path: root/security/tcp_wrappers/patches/patch-ag
blob: d15260f147c8da11c1e7fe035cacddce20c04aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-ag,v 1.2 2012/07/20 09:58:36 adam Exp $

--- hosts_access.c.orig	2003-12-25 00:49:56.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
@@ -405,7 +402,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;
@@ -416,7 +413,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