summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.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/jobs.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/jobs.c')
-rw-r--r--bin/sh/jobs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index f8ecbf8..7c9cfa4 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -76,12 +76,12 @@ __FBSDID("$FreeBSD$");
#include "mystring.h"
-struct job *jobtab; /* array of jobs */
-int njobs; /* size of array */
+STATIC struct job *jobtab; /* array of jobs */
+STATIC int njobs; /* size of array */
MKINIT pid_t backgndpid = -1; /* pid of last background process */
#if JOBS
-struct job *jobmru; /* most recently used job list */
-pid_t initialpgrp; /* pgrp of shell on invocation */
+STATIC struct job *jobmru; /* most recently used job list */
+STATIC pid_t initialpgrp; /* pgrp of shell on invocation */
#endif
int in_waitcmd = 0; /* are we in waitcmd()? */
int in_dowait = 0; /* are we in dowait()? */
OpenPOWER on IntegriCloud