diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-24 21:25:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-24 21:25:49 +0000 |
commit | 44a5e689b337d146e897066765ed3ecd5e930e2d (patch) | |
tree | 182a9993a4d7330ecc33ca8587b9017afb8b6729 /lib/libc/gen/popen.c | |
parent | a98541c495b83b039b265d44eafe0e9bcc5d36cf (diff) |
Fix compiler warnings.
Diffstat (limited to 'lib/libc/gen/popen.c')
-rw-r--r-- | lib/libc/gen/popen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/popen.c b/lib/libc/gen/popen.c index 9372d0ebf89..21dac231b59 100644 --- a/lib/libc/gen/popen.c +++ b/lib/libc/gen/popen.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: popen.c,v 1.7 1997/07/09 00:28:23 millert Exp $"; +static char rcsid[] = "$OpenBSD: popen.c,v 1.8 1997/08/24 21:25:46 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -64,6 +64,10 @@ popen(program, type) FILE *iop; int pdes[2], pid; +#ifdef __GNUC__ + (void)&cur; +#endif + if ((*type != 'r' && *type != 'w') || type[1] != '\0') { errno = EINVAL; return (NULL); |