]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
split: don’t assume pid_t fits in int
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 19:42:16 +0000 (11:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Mar 2023 22:49:45 +0000 (14:49 -0800)
* src/split.c (filter_pid): Now pid_t, not int.
(of_t): opid member is now pid_t, not int.

src/split.c

index c8d54576b58560ba6a9ff85645a78d0f0ffce944..524a4fb78bed853200c11dfac033745b4561178f 100644 (file)
@@ -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