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/input.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/input.c')
-rw-r--r-- | bin/sh/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/input.c b/bin/sh/input.c index c801e62..bd68339 100644 --- a/bin/sh/input.c +++ b/bin/sh/input.c @@ -98,14 +98,14 @@ MKINIT int parselleft; /* copy of parsefile->lleft */ char *parsenextc; /* copy of parsefile->nextc */ MKINIT struct parsefile basepf; /* top level input file */ char basebuf[BUFSIZ]; /* buffer for top level input file */ -STATIC struct parsefile *parsefile = &basepf; /* current input file */ +static struct parsefile *parsefile = &basepf; /* current input file */ int init_editline = 0; /* editline library initialized? */ int whichprompt; /* 1 == PS1, 2 == PS2 */ EditLine *el; /* cookie for editline package */ STATIC void pushfile(void); -static int preadfd(void); +STATIC int preadfd(void); #ifdef mkinit INCLUDE "input.h" @@ -169,7 +169,7 @@ pgetc(void) } -static int +STATIC int preadfd(void) { int nr; |