blob: c7ab59bcb257c51c728d06fe59657716ae4909ca (
plain) (
blame)
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
|
--- dns.c.orig Thu Mar 23 02:45:58 2006
+++ dns.c Wed May 3 18:48:01 2006
@@ -48,11 +48,13 @@
#include "dns.h"
#include "net.h"
+/*
#ifdef NO_STRERROR
extern int sys_nerr;
extern char *sys_errlist[];
#define strerror(errno) (((errno) >= 0 && (errno) < sys_nerr) ? sys_errlist[errno] : "unlisted error")
#endif
+*/
/* Hmm, it seems Irix requires this */
extern int errno;
@@ -1357,7 +1359,7 @@
#ifdef ENABLE_IPV6
/* Returns an ip6.arpa character string. */
void addr2ip6arpa( ip_t * ip, char * buf ) {
- char * p = (char *) ip;
+ unsigned char * p = (unsigned char *) ip;
char * b = buf;
int i;
|