diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2011-11-06 08:16:24 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2011-11-06 08:16:24 +0000 |
| commit | 4f5e9a1a579c63c3a4337e648078382393e27f26 (patch) | |
| tree | 99f93f6483e7694e9572f6c1f41c3cc54a101b69 /usr.bin/pr | |
| parent | 0e5d3f8e6ce2359be0b0dcbf35ce1f600404aaf8 (diff) | |
Notes
Diffstat (limited to 'usr.bin/pr')
| -rw-r--r-- | usr.bin/pr/extern.h | 2 | ||||
| -rw-r--r-- | usr.bin/pr/pr.c | 58 |
2 files changed, 31 insertions, 29 deletions
diff --git a/usr.bin/pr/extern.h b/usr.bin/pr/extern.h index da552c03e8e8..c39e18f89bfc 100644 --- a/usr.bin/pr/extern.h +++ b/usr.bin/pr/extern.h @@ -38,7 +38,9 @@ * $FreeBSD$ */ +extern int eopterr; extern int eoptind; +extern int eoptopt; extern char *eoptarg; void addnum(char *, int, int); diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index ae7ae07ac0f7..510f9e86b04b 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -80,40 +80,40 @@ __FBSDID("$FreeBSD$"); /* * parameter variables */ -int pgnm; /* starting page number */ -int clcnt; /* number of columns */ -int colwd; /* column data width - multiple columns */ -int across; /* mult col flag; write across page */ -int dspace; /* double space flag */ -char inchar; /* expand input char */ -int ingap; /* expand input gap */ -int pausefst; /* Pause before first page */ -int pauseall; /* Pause before each page */ -int formfeed; /* use formfeed as trailer */ -char *header; /* header name instead of file name */ -char ochar; /* contract output char */ -int ogap; /* contract output gap */ -int lines; /* number of lines per page */ -int merge; /* merge multiple files in output */ -char nmchar; /* line numbering append char */ -int nmwd; /* width of line number field */ -int offst; /* number of page offset spaces */ -int nodiag; /* do not report file open errors */ -char schar; /* text column separation character */ -int sflag; /* -s option for multiple columns */ -int nohead; /* do not write head and trailer */ -int pgwd; /* page width with multiple col output */ -const char *timefrmt; /* time conversion string */ +static int pgnm; /* starting page number */ +static int clcnt; /* number of columns */ +static int colwd; /* column data width - multiple columns */ +static int across; /* mult col flag; write across page */ +static int dspace; /* double space flag */ +static char inchar; /* expand input char */ +static int ingap; /* expand input gap */ +static int pausefst; /* Pause before first page */ +static int pauseall; /* Pause before each page */ +static int formfeed; /* use formfeed as trailer */ +static char *header; /* header name instead of file name */ +static char ochar; /* contract output char */ +static int ogap; /* contract output gap */ +static int lines; /* number of lines per page */ +static int merge; /* merge multiple files in output */ +static char nmchar; /* line numbering append char */ +static int nmwd; /* width of line number field */ +static int offst; /* number of page offset spaces */ +static int nodiag; /* do not report file open errors */ +static char schar; /* text column separation character */ +static int sflag; /* -s option for multiple columns */ +static int nohead; /* do not write head and trailer */ +static int pgwd; /* page width with multiple col output */ +static const char *timefrmt; /* time conversion string */ /* * misc globals */ -FILE *err; /* error message file pointer */ -int addone; /* page length is odd with double space */ -int errcnt; /* error count on file processing */ -char digs[] = "0123456789"; /* page number translation map */ +static FILE *err; /* error message file pointer */ +static int addone; /* page length is odd with double space */ +static int errcnt; /* error count on file processing */ +static char digs[] = "0123456789"; /* page number translation map */ -char fnamedefault[] = FNAME; +static char fnamedefault[] = FNAME; int main(int argc, char *argv[]) |
