summaryrefslogtreecommitdiffstats
path: root/bin/sh/redir.c
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2003-07-05 15:18:44 +0000
committerdds <dds@FreeBSD.org>2003-07-05 15:18:44 +0000
commit34719e1dbbd13069c2034382dc5129edf7657a4b (patch)
treeb3c2aa55b49d1fcca627aec69e1e5a16b264b51d /bin/sh/redir.c
parent9179c67e977015ed4bfe4a52ade43ac574300c93 (diff)
downloadFreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.zip
FreeBSD-src-34719e1dbbd13069c2034382dc5129edf7657a4b.tar.gz
Changes following CScout analysis:
- Removed dead declarations - Made objects that should have been declared as static, static. The changes use STATIC instead of static, following the existing convention in the rest of the code. Approved by: schweikh (mentor) MFC after: 2 weeks
Diffstat (limited to 'bin/sh/redir.c')
-rw-r--r--bin/sh/redir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/redir.c b/bin/sh/redir.c
index 0a4588f..547cdcc 100644
--- a/bin/sh/redir.c
+++ b/bin/sh/redir.c
@@ -84,7 +84,7 @@ MKINIT struct redirtab *redirlist;
* background commands, where we want to redirect fd0 to /dev/null only
* if it hasn't already been redirected.
*/
-int fd0_redirected = 0;
+STATIC int fd0_redirected = 0;
STATIC void openredirect(union node *, char[10 ]);
STATIC int openhere(union node *);
OpenPOWER on IntegriCloud