summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/list.c
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2007-11-08 11:13:03 +0000
committerdds <dds@FreeBSD.org>2007-11-08 11:13:03 +0000
commit5ea072fa21afef1e83ec555168661a7fd61cb1ef (patch)
treead74f74cdc4f4e45536bf27ca39eb0886e9150d8 /usr.bin/mail/list.c
parentbb2ff1033f157496f7ea65a9d04f414b24f8a94b (diff)
downloadFreeBSD-src-5ea072fa21afef1e83ec555168661a7fd61cb1ef.zip
FreeBSD-src-5ea072fa21afef1e83ec555168661a7fd61cb1ef.tar.gz
Use static storage-class specifier where appropriate.
Found by: CScout
Diffstat (limited to 'usr.bin/mail/list.c')
-rw-r--r--usr.bin/mail/list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mail/list.c b/usr.bin/mail/list.c
index abff92a..b5907ec 100644
--- a/usr.bin/mail/list.c
+++ b/usr.bin/mail/list.c
@@ -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;
OpenPOWER on IntegriCloud