summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-09-20 01:02:14 +0000
committerSteve Price <steve@FreeBSD.org>1999-09-20 01:02:14 +0000
commit44eaace1098510786f5e2a57e82c4bbe21d0333b (patch)
tree02ba1d3c5f88fb0ca398a64eab6660629a2c536b /net
parentGet this port to 'make package' again. (diff)
Judiciously s/int/ssize_t/ so this builds on FreeBSD/Alpha.
Notes
Notes: svn path=/head/; revision=21783
Diffstat (limited to 'net')
-rw-r--r--net/nettest/files/patch-ab26
-rw-r--r--net/nettest/files/patch-ac26
2 files changed, 44 insertions, 8 deletions
diff --git a/net/nettest/files/patch-ab b/net/nettest/files/patch-ab
index 86333d7523cb..151746bf75f5 100644
--- a/net/nettest/files/patch-ab
+++ b/net/nettest/files/patch-ab
@@ -1,5 +1,5 @@
*** nettest.c.orig Thu Nov 5 15:52:58 1992
---- nettest.c Mon Oct 20 12:50:20 1997
+--- nettest.c Sun Sep 19 17:33:02 1999
***************
*** 92,98 ****
--- 92,102 ----
@@ -15,8 +15,26 @@
#define GETTIMES(a, b) ftime(&a); times(&b);
#define TIMETYPE struct timeb
***************
+*** 126,132 ****
+
+ void do_children(), do_stream(), usage(), do_dgram(), prtimes();
+
+! int read(), recv();
+
+ int (*rfunc)() = read;
+
+--- 130,137 ----
+
+ void do_children(), do_stream(), usage(), do_dgram(), prtimes();
+
+! int read();
+! ssize_t recv();
+
+ int (*rfunc)() = read;
+
+***************
*** 550,556 ****
---- 554,564 ----
+--- 555,565 ----
shutdown(s, 2);
exit(0);
}
@@ -38,7 +56,7 @@
if (ret < 0) {
perror(mesghdr ? "sendmsg" : "sendto");
---- 1168,1175 ----
+--- 1169,1176 ----
*data = 0;
for (i = 0; i < nchunks; i++) {
ret = mesghdr ? sendmsg(s, &outmsg, 0)
@@ -61,7 +79,7 @@
} else {
#endif
for (c = name; *c; c++) {
---- 1405,1417 ----
+--- 1406,1418 ----
register char *c;
int tos;
diff --git a/net/nettest/files/patch-ac b/net/nettest/files/patch-ac
index 4ed2ce3e7e95..53e3af765c7a 100644
--- a/net/nettest/files/patch-ac
+++ b/net/nettest/files/patch-ac
@@ -1,5 +1,23 @@
*** nettestd.c.orig Thu Nov 5 15:52:58 1992
---- nettestd.c Mon Oct 20 13:28:06 1997
+--- nettestd.c Sun Sep 19 17:31:20 1999
+***************
+*** 107,113 ****
+ } name;
+ int namesize;
+
+! int read(), recv();
+ int (*rfunc)() = read;
+
+ main(argc, argv)
+--- 107,114 ----
+ } name;
+ int namesize;
+
+! int read();
+! ssize_t recv();
+ int (*rfunc)() = read;
+
+ main(argc, argv)
***************
*** 416,422 ****
)
@@ -9,7 +27,7 @@
error("bind");
exit(1);
}
---- 416,422 ----
+--- 417,423 ----
)
error("setsockopt (IP_OPTIONS)");
#endif
@@ -29,7 +47,7 @@
if (s2 < 0) {
extern int errno;
if (errno == EINTR)
---- 447,456 ----
+--- 448,457 ----
#endif
listen(s, 5);
@@ -49,7 +67,7 @@
&namesize);
}
if (t < 0) {
---- 723,729 ----
+--- 724,730 ----
#endif
{
namesize = sizeof(name.d_inet);