From 8d98ac3e234f39a63dafbec5771ca2822f673597 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Tue, 19 Mar 2024 20:00:09 -0700 Subject: net/rdist7: Add new port Add new rdist7 port packaging rdist 7.0.0-alpha10. --- net/rdist7/files/patch-src_child.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net/rdist7/files/patch-src_child.c (limited to 'net/rdist7/files/patch-src_child.c') diff --git a/net/rdist7/files/patch-src_child.c b/net/rdist7/files/patch-src_child.c new file mode 100644 index 000000000000..14b5a9ad3713 --- /dev/null +++ b/net/rdist7/files/patch-src_child.c @@ -0,0 +1,29 @@ +--- src/child.c.orig 1998-11-10 04:18:57 UTC ++++ src/child.c +@@ -189,7 +189,7 @@ static void readchild(child) + CHILD *child; + { + char rbuf[BUFSIZ]; +- int amt; ++ ssize_t amt; + + debugmsg(DM_CALL, "[readchild(%s, %d, %d) start]", + child->c_name, child->c_pid, child->c_readfd); +@@ -208,7 +208,7 @@ static void readchild(child) + */ + while ((amt = read(child->c_readfd, rbuf, sizeof(rbuf))) > 0) { + /* XXX remove these debug calls */ +- debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %d bytes]", ++ debugmsg(DM_MISC, "[readchild(%s, %d, %d) got %lld bytes]", + child->c_name, child->c_pid, child->c_readfd, amt); + + (void) xwrite(fileno(stdout), rbuf, amt); +@@ -217,7 +217,7 @@ static void readchild(child) + child->c_name, child->c_pid, child->c_readfd); + } + +- debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %d errno = %d\n", ++ debugmsg(DM_MISC, "readchild(%s, %d, %d) done: amt = %lld errno = %d\n", + child->c_name, child->c_pid, child->c_readfd, amt, errno); + + /* -- cgit v1.2.3