diff options
author | steve <steve@FreeBSD.org> | 1999-09-20 09:02:14 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-09-20 09:02:14 +0800 |
commit | 5dd942b3702717f5bcd3fa488ae236a7a96f8dcf (patch) | |
tree | a430279612386d3faef25187061b020fdee675b4 /net/nettest | |
parent | 7d57dd25634588adc3fbd312845b5f97fa541704 (diff) | |
download | freebsd-ports-gnome-5dd942b3702717f5bcd3fa488ae236a7a96f8dcf.tar.gz freebsd-ports-gnome-5dd942b3702717f5bcd3fa488ae236a7a96f8dcf.tar.zst freebsd-ports-gnome-5dd942b3702717f5bcd3fa488ae236a7a96f8dcf.zip |
Judiciously s/int/ssize_t/ so this builds on FreeBSD/Alpha.
Diffstat (limited to 'net/nettest')
-rw-r--r-- | net/nettest/files/patch-ab | 26 | ||||
-rw-r--r-- | net/nettest/files/patch-ac | 26 |
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); |