summaryrefslogtreecommitdiff
path: root/bin/sh/redir.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-14 12:18:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-14 12:18:28 +0000
commit28e461d672204f54b8eb68a590d36c23a32f9574 (patch)
tree3e3c51ee95dec9ad261710930b40e4426389cbb8 /bin/sh/redir.c
parentfb3035e3379d9258753316427b03a4d8d0676d07 (diff)
-Wall'ing.
Diffstat (limited to 'bin/sh/redir.c')
-rw-r--r--bin/sh/redir.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/sh/redir.c b/bin/sh/redir.c
index 1bad4d0246c..e2659ba25ab 100644
--- a/bin/sh/redir.c
+++ b/bin/sh/redir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: redir.c,v 1.3 1996/10/20 00:55:03 millert Exp $ */
+/* $OpenBSD: redir.c,v 1.4 1996/12/14 12:18:24 mickey Exp $ */
/* $NetBSD: redir.c,v 1.12 1995/05/11 21:30:10 christos Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)redir.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: redir.c,v 1.3 1996/10/20 00:55:03 millert Exp $";
+static char rcsid[] = "$OpenBSD: redir.c,v 1.4 1996/12/14 12:18:24 mickey Exp $";
#endif
#endif /* not lint */
@@ -108,8 +108,10 @@ redirect(redir, flags)
struct redirtab *sv;
int i;
int fd;
- char memory[10]; /* file descriptors to write to memory */
-
+ char memory[10]; /* file descriptors to write to memory */
+#ifdef lint
+ sv = NULL;
+#endif
for (i = 10 ; --i >= 0 ; )
memory[i] = 0;
memory[1] = flags & REDIR_BACKQ;