Date: Sun, 6 Nov 2011 08:13:51 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227152 - head/usr.bin/banner Message-ID: <201111060813.pA68Dp01007847@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Sun Nov 6 08:13:51 2011 New Revision: 227152 URL: http://svn.freebsd.org/changeset/base/227152 Log: Add missing static keywords to banner(1) Modified: head/usr.bin/banner/banner.c Modified: head/usr.bin/banner/banner.c ============================================================================== --- head/usr.bin/banner/banner.c Sun Nov 6 08:10:41 2011 (r227151) +++ head/usr.bin/banner/banner.c Sun Nov 6 08:13:51 2011 (r227152) @@ -59,7 +59,7 @@ __FBSDID("$FreeBSD$"); #define NBYTES 9271 /* Pointers into data_table for each ASCII char */ -const int asc_ptr[NCHARS] = { +static const int asc_ptr[NCHARS] = { /* ^@ */ 0, 0, 0, 0, 0, 0, 0, 0, /* ^H */ 0, 0, 0, 0, 0, 0, 0, 0, /* ^P */ 0, 0, 0, 0, 0, 0, 0, 0, @@ -86,7 +86,7 @@ const int asc_ptr[NCHARS] = { * is the next elt in array) and goto second * next element in array. */ -const unsigned char data_table[NBYTES] = { +static const unsigned char data_table[NBYTES] = { /* 0 1 2 3 4 5 6 7 8 9 */ /* 0 */ 129, 227, 130, 34, 6, 90, 19, 129, 32, 10, /* 10 */ 74, 40, 129, 31, 12, 64, 53, 129, 30, 14, @@ -1018,11 +1018,11 @@ const unsigned char data_table[NBYTES] = /* 9270 */ 193 }; -char line[DWIDTH]; -char *message; -char print[DWIDTH]; -int debug, i, j, linen, max, nchars, pc, term, trace, x, y; -int width = DWIDTH; /* -w option: scrunch letters to 80 columns */ +static char line[DWIDTH]; +static char *message; +static char print[DWIDTH]; +static int debug, i, j, linen, max, nchars, pc, term, trace, x, y; +static int width = DWIDTH; /* -w option: scrunch letters to 80 columns */ static void usage(void);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111060813.pA68Dp01007847>