From e7b3338485ee59ea51b9482f4e4d345c5534a35a Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Nov 2011 18:49:53 +0000 Subject: [PATCH] Mark global functions and/or variables in paste(1) static where possible. This allows compilers and static analyzers to more thorough analysis. --- usr.bin/paste/paste.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c index e907d2c1686..f03f7840304 100644 --- a/usr.bin/paste/paste.c +++ b/usr.bin/paste/paste.c @@ -57,15 +57,15 @@ __FBSDID("$FreeBSD$"); #include #include -wchar_t *delim; -int delimcnt; +static wchar_t *delim; +static int delimcnt; -int parallel(char **); -int sequential(char **); -int tr(wchar_t *); +static int parallel(char **); +static int sequential(char **); +static int tr(wchar_t *); static void usage(void); -wchar_t tab[] = L"\t"; +static wchar_t tab[] = L"\t"; int main(int argc, char *argv[]) @@ -125,7 +125,7 @@ typedef struct _list { char *name; } LIST; -int +static int parallel(char **argv) { LIST *lp; @@ -195,7 +195,7 @@ parallel(char **argv) return (0); } -int +static int sequential(char **argv) { FILE *fp; @@ -235,7 +235,7 @@ sequential(char **argv) return (failed != 0); } -int +static int tr(wchar_t *arg) { int cnt;