summaryrefslogtreecommitdiff
blob: 7faa51260ab5923e656ec652f4fe0cd1493e8297 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
rely on standard POSIX headers to fix globs of warnings

requires 0.88-protos.patch first

--- a/FILES
+++ b/FILES
@@ -222,7 +222,6 @@ dns_nd6.c
 dns_sortip6.c
 fmt_xlong.c
 ip6_fmt.c
-ip6_scan.c
 scan_0x.c
 socket_accept6.c
 socket_bind6.c
--- a/TARGETS
+++ b/TARGETS
@@ -177,7 +177,6 @@ dns_nd6.o
 dns_sortip6.o
 fmt_xlong.o
 ip6_fmt.o
-ip6_scan.o
 scan_0x.o
 socket_accept6.o
 socket_bind6.o
--- a/ip6.h
+++ b/ip6.h
@@ -4,10 +4,10 @@
 #include "byte.h"
 
 extern unsigned int scan_ip6(const char *src,char *ip);
-extern unsigned int fmt_ip6(char *dest,const char *ip);
+extern unsigned int ip6_fmt(char *dest,char ip[16]);
 
 extern unsigned int scan_ip6_flat(const char *src,char *);
-extern unsigned int fmt_ip6_flat(char *dest,const char *);
+extern unsigned int ip6_fmt_flat(char *dest,char[16]);
 
 /*
  ip6 address syntax: (h = hex digit), no leading '0' required
--- a/remoteinfo6.c
+++ b/remoteinfo6.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include "fmt.h"
 #include "buffer.h"
 #include "socket.h"
@@ -5,11 +6,12 @@
 #include "iopause.h"
 #include "timeoutconn.h"
 #include "remoteinfo.h"
+#include "readwrite.h"
 
 static struct taia now;
 static struct taia deadline;
 
-static int mywrite(int fd,char *buf,int len)
+static ssize_t mywrite(int fd,char *buf,int len)
 {
   iopause_fd x;
 
@@ -27,7 +29,7 @@ static int mywrite(int fd,char *buf,int len)
   return write(fd,buf,len);
 }
 
-static int myread(int fd,char *buf,int len)
+static ssize_t myread(int fd,char *buf,int len)
 {
   iopause_fd x;
 
--- a/socket_tcp6.c
+++ b/socket_tcp6.c
@@ -3,6 +3,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <errno.h>
+#include <unistd.h>
 #include "ndelay.h"
 #include "socket.h"
 #include "haveip6.h"
--- a/dns.h
+++ b/dns.h
@@ -87,6 +87,7 @@ extern int dns_ip4_qualify(stralloc *,stralloc *,const stralloc *);
 extern int dns_ip6_qualify_rules(stralloc *,stralloc *,const stralloc *,const stralloc *);
 extern int dns_ip6_qualify(stralloc *,stralloc *,const stralloc *);
 
+extern int dns_name6(stralloc *,char [16]);
 extern int dns_name6_domain(char *,char *);
 #define DNS_NAME6_DOMAIN (4*16+11)