summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-04 11:42:16 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-04 14:49:45 -0800
commit41615f0f8fe791706f977c9705138315947f4404 (patch)
tree74d26426a853fd40b485e6fbec380321ccccbf1f
parent99fcde22ce8c6108781ca9d2bf7cd7286bdd1355 (diff)
downloadcoreutils-41615f0f8fe791706f977c9705138315947f4404.tar.gz
split: don’t assume pid_t fits in int
* src/split.c (filter_pid): Now pid_t, not int. (of_t): opid member is now pid_t, not int.
-rw-r--r--src/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index c8d54576b..524a4fb78 100644
--- a/src/split.c
+++ b/src/split.c
@@ -54,7 +54,7 @@
static char const *filter_command;
/* Process ID of the filter. */
-static int filter_pid;
+static pid_t filter_pid;
/* Array of open pipes. */
static int *open_pipes;
@@ -1037,7 +1037,7 @@ typedef struct of_info
char *of_name;
int ofd;
FILE *ofile;
- int opid;
+ pid_t opid;
} of_t;
enum