From: David Levine Date: Fri, 13 Dec 2013 00:27:17 +0000 (-0600) Subject: Squelch warning from cc on OpenBSD that fd argument of usr_pipe() in X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/95a44a8aed37f5f8146b3fdced5718aa5e72f4ec Squelch warning from cc on OpenBSD that fd argument of usr_pipe() in slocal.c might get clobbered by vfork() by copying it to a volatile local. --- diff --git a/uip/slocal.c b/uip/slocal.c index c944cd69..8daf6081 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1042,8 +1042,9 @@ usr_folder (int fd, char *string) */ 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;