Mark global functions and/or variables in paste(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.
This commit is contained in:
Ed Schouten 2011-11-06 18:49:53 +00:00
parent df6dd6933d
commit e7b3338485

View File

@ -57,15 +57,15 @@ __FBSDID("$FreeBSD$");
#include <unistd.h> #include <unistd.h>
#include <wchar.h> #include <wchar.h>
wchar_t *delim; static wchar_t *delim;
int delimcnt; static int delimcnt;
int parallel(char **); static int parallel(char **);
int sequential(char **); static int sequential(char **);
int tr(wchar_t *); static int tr(wchar_t *);
static void usage(void); static void usage(void);
wchar_t tab[] = L"\t"; static wchar_t tab[] = L"\t";
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
@ -125,7 +125,7 @@ typedef struct _list {
char *name; char *name;
} LIST; } LIST;
int static int
parallel(char **argv) parallel(char **argv)
{ {
LIST *lp; LIST *lp;
@ -195,7 +195,7 @@ parallel(char **argv)
return (0); return (0);
} }
int static int
sequential(char **argv) sequential(char **argv)
{ {
FILE *fp; FILE *fp;
@ -235,7 +235,7 @@ sequential(char **argv)
return (failed != 0); return (failed != 0);
} }
int static int
tr(wchar_t *arg) tr(wchar_t *arg)
{ {
int cnt; int cnt;