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/trap.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/trap.c')
-rw-r--r-- | bin/sh/trap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/trap.c b/bin/sh/trap.c index 3a6803b..979ad73 100644 --- a/bin/sh/trap.c +++ b/bin/sh/trap.c @@ -80,7 +80,7 @@ static volatile sig_atomic_t gotsig[NSIG]; static int ignore_sigchld; /* Used while handling SIGCHLD traps. */ volatile sig_atomic_t gotwinch; -static int getsigaction(int, sig_t *); +STATIC int getsigaction(int, sig_t *); /* @@ -88,7 +88,7 @@ static int getsigaction(int, sig_t *); * * Note: the signal number may exceed NSIG. */ -static int +STATIC int sigstring_to_signum(char *sig) { @@ -116,7 +116,7 @@ sigstring_to_signum(char *sig) /* * Print a list of valid signal names. */ -static void +STATIC void printsignals(void) { int n, outlen; @@ -334,7 +334,7 @@ setsignal(int signo) /* * Return the current setting for sig w/o changing it. */ -static int +STATIC int getsigaction(int signo, sig_t *sigact) { struct sigaction sa; |