Mark global functions and/or variables in lam(1) static where possible.
This allows compilers and static analyzers to more thorough analysis.
This commit is contained in:
parent
357050fc0e
commit
86350df6fe
@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#define MAXOFILES 20
|
#define MAXOFILES 20
|
||||||
#define BIGBUFSIZ 5 * BUFSIZ
|
#define BIGBUFSIZ 5 * BUFSIZ
|
||||||
|
|
||||||
struct openfile { /* open file structure */
|
static struct openfile { /* open file structure */
|
||||||
FILE *fp; /* file pointer */
|
FILE *fp; /* file pointer */
|
||||||
short eof; /* eof flag */
|
short eof; /* eof flag */
|
||||||
short pad; /* pad flag for missing columns */
|
short pad; /* pad flag for missing columns */
|
||||||
@ -64,10 +64,10 @@ struct openfile { /* open file structure */
|
|||||||
const char *format; /* printf(3) style string spec. */
|
const char *format; /* printf(3) style string spec. */
|
||||||
} input[MAXOFILES];
|
} input[MAXOFILES];
|
||||||
|
|
||||||
int morefiles; /* set by getargs(), changed by gatherline() */
|
static int morefiles; /* set by getargs(), changed by gatherline() */
|
||||||
int nofinalnl; /* normally append \n to each output line */
|
static int nofinalnl; /* normally append \n to each output line */
|
||||||
char line[BIGBUFSIZ];
|
static char line[BIGBUFSIZ];
|
||||||
char *linep;
|
static char *linep;
|
||||||
|
|
||||||
static char *gatherline(struct openfile *);
|
static char *gatherline(struct openfile *);
|
||||||
static void getargs(char *[]);
|
static void getargs(char *[]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user