summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/filters
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-10-25 20:16:38 +0000
committered <ed@FreeBSD.org>2012-10-25 20:16:38 +0000
commit7a91df3c3792dc1bed5ff818447fc26896d809d1 (patch)
tree0e0428999efb2ba07c54e60bb09ad02a5f3c3bd6 /usr.sbin/lpr/filters
parent534523d9751333936c4698628a7545f16b40d0c3 (diff)
downloadFreeBSD-src-7a91df3c3792dc1bed5ff818447fc26896d809d1.zip
FreeBSD-src-7a91df3c3792dc1bed5ff818447fc26896d809d1.tar.gz
Let lpr build with -Wmissing-variable-declarations.
Mark variables static where possible and place the uid/euid variables in lp.h, so that we can compile-time enforce that these variables have the same type.
Diffstat (limited to 'usr.sbin/lpr/filters')
-rw-r--r--usr.sbin/lpr/filters/lpf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/lpr/filters/lpf.c b/usr.sbin/lpr/filters/lpf.c
index b277d17..f8ffe52 100644
--- a/usr.sbin/lpr/filters/lpf.c
+++ b/usr.sbin/lpr/filters/lpf.c
@@ -60,17 +60,17 @@ __FBSDID("$FreeBSD$");
#define MAXWIDTH 132
#define MAXREP 10
-char buf[MAXREP][MAXWIDTH];
-int maxcol[MAXREP] = {-1};
-int lineno;
-int width = 132; /* default line length */
-int length = 66; /* page length */
-int indent; /* indentation length */
-int npages = 1;
-int literal; /* print control characters */
-char *name; /* user's login name */
-char *host; /* user's machine name */
-char *acctfile; /* accounting information file */
+static char buf[MAXREP][MAXWIDTH];
+static int maxcol[MAXREP] = {-1};
+static int lineno;
+static int width = 132; /* default line length */
+static int length = 66; /* page length */
+static int indent; /* indentation length */
+static int npages = 1;
+static int literal; /* print control characters */
+static char *name; /* user's login name */
+static char *host; /* user's machine name */
+static char *acctfile; /* accounting information file */
int
main(int argc, char *argv[])
OpenPOWER on IntegriCloud