Use static storage-class specifier where appropriate.

Found by: CScout
This commit is contained in:
Diomidis Spinellis 2007-11-08 11:13:03 +00:00
parent c14530c701
commit e7d538131d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173439
4 changed files with 10 additions and 10 deletions

View File

@ -293,7 +293,7 @@ Type(msgvec)
/*
* Type out the messages requested.
*/
jmp_buf pipestop;
static jmp_buf pipestop;
int
type1(msgvec, doign, page)
int *msgvec;

View File

@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
* Lexical processing of commands.
*/
const char *prompt = "& ";
static const char *prompt = "& ";
extern const struct cmd cmdtab[];
extern const char *version;
@ -194,8 +194,8 @@ incfile()
return (msgCount - omsgCount);
}
int *msgvec;
int reset_on_stop; /* do a reset() if stopped */
static int *msgvec;
static int reset_on_stop; /* do a reset() if stopped */
/*
* Interpret user commands one by one. If standard input is not a tty,
@ -539,7 +539,7 @@ isprefix(as1, as2)
* Also, unstack all source files.
*/
int inithdr; /* am printing startup headers */
static int inithdr; /* am printing startup headers */
/*ARGSUSED*/
void

View File

@ -98,7 +98,7 @@ getmsglist(buf, vector, flags)
* the colon and gives the corresponding modifier bit.
*/
struct coltab {
static struct coltab {
char co_char; /* What to find past : */
int co_bit; /* Associated modifier bit */
int co_mask; /* m_status bits to mask */
@ -499,7 +499,7 @@ getrawlist(line, argv, argc)
* appropriate. In any event, store the scanned `thing' in lexstring.
*/
struct lex {
static struct lex {
char l_char;
char l_token;
} singles[] = {
@ -686,7 +686,7 @@ matchsender(str, mesg)
static char *to_fields[] = { "to", "cc", "bcc", NULL };
int
static int
matchto(str, mesg)
char *str;
int mesg;
@ -723,7 +723,7 @@ matchto(str, mesg)
* be used to limit the search to just the 'To' field.
*/
char lastscan[STRINGLEN];
static char lastscan[STRINGLEN];
int
matchfield(str, mesg)
char *str;

View File

@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
* Startup -- interface with user.
*/
jmp_buf hdrjmp;
static jmp_buf hdrjmp;
extern const char *version;