From fb0088d7d03a3ea8e345fa7da1cdbf560f49d313 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 6 Nov 2011 18:49:41 +0000 Subject: [PATCH] Mark global functions and/or variables in lam(1) static where possible. This allows compilers and static analyzers to more thorough analysis. --- usr.bin/lam/lam.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index 9c36a49c91b..60d1c52e280 100644 --- a/usr.bin/lam/lam.c +++ b/usr.bin/lam/lam.c @@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$"); #define MAXOFILES 20 #define BIGBUFSIZ 5 * BUFSIZ -struct openfile { /* open file structure */ +static struct openfile { /* open file structure */ FILE *fp; /* file pointer */ short eof; /* eof flag */ short pad; /* pad flag for missing columns */ @@ -64,10 +64,10 @@ struct openfile { /* open file structure */ const char *format; /* printf(3) style string spec. */ } input[MAXOFILES]; -int morefiles; /* set by getargs(), changed by gatherline() */ -int nofinalnl; /* normally append \n to each output line */ -char line[BIGBUFSIZ]; -char *linep; +static int morefiles; /* set by getargs(), changed by gatherline() */ +static int nofinalnl; /* normally append \n to each output line */ +static char line[BIGBUFSIZ]; +static char *linep; static char *gatherline(struct openfile *); static void getargs(char *[]); -- 2.45.0