blob: 265df2700022650993d80df25edb6d240e13fb4e (
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.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
|