summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2010-10-13 04:01:01 +0000
committerobrien <obrien@FreeBSD.org>2010-10-13 04:01:01 +0000
commitf31ad1c86b4755ef67582377762ce84fa733658b (patch)
tree9c3469b15542c1ab6cc58c5974f1da71c59da708 /bin/sh/jobs.c
parent8c097aa69ed7151df0358afc55a9bec6e7ae8b1a (diff)
downloadFreeBSD-src-f31ad1c86b4755ef67582377762ce84fa733658b.zip
FreeBSD-src-f31ad1c86b4755ef67582377762ce84fa733658b.tar.gz
Consistently use "STATIC" for all functions in order to be able to set
breakpoints with in a debugger. And use naked "static" for variables. Noticed by: bde
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r--bin/sh/jobs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index f55b637..7740302 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -72,13 +72,13 @@ __FBSDID("$FreeBSD$");
#include "mystring.h"
-STATIC struct job *jobtab; /* array of jobs */
-STATIC 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 */
MKINIT struct job *bgjob = NULL; /* last background process */
#if JOBS
-STATIC struct job *jobmru; /* most recently used job list */
-STATIC 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()? */
@@ -1130,8 +1130,8 @@ backgndpidval(void)
* jobs command.
*/
-STATIC char *cmdnextc;
-STATIC int cmdnleft;
+static char *cmdnextc;
+static int cmdnleft;
#define MAXCMDTEXT 200
char *
OpenPOWER on IntegriCloud