summaryrefslogtreecommitdiff
path: root/net/rdist7/files/patch-src_child.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-03-19 20:00:09 -0700
committerCy Schubert <cy@FreeBSD.org>2024-03-19 20:02:33 -0700
commit8d98ac3e234f39a63dafbec5771ca2822f673597 (patch)
treec9cea49ca3e67fb622f5491c11d45a5638d59b22 /net/rdist7/files/patch-src_child.c
parentnet/rdist6: Document license (diff)
net/rdist7: Add new port
Add new rdist7 port packaging rdist 7.0.0-alpha10.
Diffstat (limited to 'net/rdist7/files/patch-src_child.c')
-rw-r--r--net/rdist7/files/patch-src_child.c29
1 files changed, 29 insertions, 0 deletions
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);
+
+ /*