diff options
author | obrien <obrien@FreeBSD.org> | 2010-10-13 04:01:01 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-10-13 04:01:01 +0000 |
commit | f31ad1c86b4755ef67582377762ce84fa733658b (patch) | |
tree | 9c3469b15542c1ab6cc58c5974f1da71c59da708 /bin/sh/jobs.c | |
parent | 8c097aa69ed7151df0358afc55a9bec6e7ae8b1a (diff) | |
download | FreeBSD-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.c | 12 |
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 * |