]> diplodocus.org Git - nmh/commitdiff
Squelch warning from cc on OpenBSD that fd argument of usr_pipe() in
authorDavid Levine <levinedl@acm.org>
Fri, 13 Dec 2013 00:27:17 +0000 (18:27 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 13 Dec 2013 00:27:17 +0000 (18:27 -0600)
slocal.c might get clobbered by vfork() by copying it to a volatile
local.

uip/slocal.c

index c944cd6..8daf608 100644 (file)
@@ -1042,8 +1042,9 @@ usr_folder (int fd, char *string)
  */
 
 static int
  */
 
 static int
-usr_pipe (int fd, char *cmd, char *pgm, char **vec, int suppress)
+usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress)
 {
 {
+    volatile int fd = fd_arg;
     pid_t child_id;
     int i, bytes, seconds, status;
     struct stat st;
     pid_t child_id;
     int i, bytes, seconds, status;
     struct stat st;