diff options
Diffstat (limited to 'troff/troff.d/ta.c')
-rw-r--r-- | troff/troff.d/ta.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/troff/troff.d/ta.c b/troff/troff.d/ta.c index c3e9d92b4197..a31953f62a4e 100644 --- a/troff/troff.d/ta.c +++ b/troff/troff.d/ta.c @@ -112,7 +112,7 @@ x ...\n device control functions: #define NFONT 10 int output = 0; /* do we do output at all? */ -int nolist = 0; /* output page list if > 0 */ +size_t nolist = 0; /* output page list if > 0 */ int olist[20]; /* pairs of page numbers */ int erase = 1; @@ -243,7 +243,8 @@ main(int argc, char **argv) void outlist(char *s) /* process list of page numbers to be printed */ { - int n1, n2, i; + int n1, n2; + size_t i; nolist = 0; while (*s && nolist < sizeof olist/sizeof *olist - 1) { @@ -279,7 +280,7 @@ outlist(char *s) /* process list of page numbers to be printed */ int in_olist(int n) /* is n in olist? */ { - int i; + size_t i; if (nolist == 0) return(1); /* everything is included */ @@ -464,17 +465,17 @@ fileinit(void) /* read in font and code files, etc. */ } void -fontprint(int i) /* debugging print of font i (0,...) */ +fontprint(int i __unused) /* debugging print of font i (0,...) */ { } void -loadcode(int n, int nw) /* load codetab on position n (0...); #chars is nw */ +loadcode(int n __unused, int nw __unused) /* load codetab on position n (0...); #chars is nw */ { } void -loadfont(int n, char *s) /* load font info for font s on position n (1...) */ +loadfont(int n __unused, char *s __unused) /* load font info for font s on position n (1...) */ { } @@ -518,7 +519,7 @@ int drawdot = '.'; /* draw with this character */ int drawsize = 1; /* shrink by this factor when drawing */ void -t_init(int reinit) /* initialize device */ +t_init(int reinit __unused) /* initialize device */ { fflush(stdout); hpos = vpos = 0; @@ -686,13 +687,13 @@ t_newline(void) /* do whatever for the end of a line */ } int -t_size(int n) /* convert integer to internal size number*/ +t_size(int n __unused) /* convert integer to internal size number*/ { return 0; } int -t_font(char *s) /* convert string to internal font number */ +t_font(char *s __unused) /* convert string to internal font number */ { return 0; } @@ -807,17 +808,17 @@ put1(int c) /* output char c */ } void -setsize(double n) /* set point size to n (internal) */ +setsize(double n __unused) /* set point size to n (internal) */ { } void -t_fp(int n, char *s) /* font position n now contains font s */ +t_fp(int n __unused, char *s __unused) /* font position n now contains font s */ { } void -setfont(int n) /* set font to n */ +setfont(int n __unused) /* set font to n */ { } @@ -870,7 +871,8 @@ char *spectab[] ={ static int sget(char *buf, size_t size, FILE *fp) { - int c, n = 0; + int c; + size_t n = 0; do c = getc(fp); |