diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index 1544608c28d0..78e978091582 100644 --- a/usr.bin/col/col.c +++ b/usr.bin/col/col.c @@ -92,22 +92,22 @@ struct line_str { int l_max_col; /* max column in the line */ }; -LINE *alloc_line(void); -void dowarn(int); -void flush_line(LINE *); -void flush_lines(int); -void flush_blanks(void); -void free_line(LINE *); -void usage(void); +static LINE *alloc_line(void); +static void dowarn(int); +static void flush_line(LINE *); +static void flush_lines(int); +static void flush_blanks(void); +static void free_line(LINE *); +static void usage(void); -CSET last_set; /* char_set of last char printed */ -LINE *lines; -int compress_spaces; /* if doing space -> tab conversion */ -int fine; /* if `fine' resolution (half lines) */ -int max_bufd_lines; /* max # lines to keep in memory */ -int nblank_lines; /* # blanks after last flushed line */ -int no_backspaces; /* if not to output any backspaces */ -int pass_unknown_seqs; /* pass unknown control sequences */ +static CSET last_set; /* char_set of last char printed */ +static LINE *lines; +static int compress_spaces; /* if doing space -> tab conversion */ +static int fine; /* if `fine' resolution (half lines) */ +static int max_bufd_lines; /* max # lines to keep in memory */ +static int nblank_lines; /* # blanks after last flushed line */ +static int no_backspaces; /* if not to output any backspaces */ +static int pass_unknown_seqs; /* pass unknown control sequences */ #define PUTC(ch) \ do { \ @@ -334,7 +334,7 @@ main(int argc, char **argv) exit(0); } -void +static void flush_lines(int nflush) { LINE *l; @@ -360,7 +360,7 @@ flush_lines(int nflush) * is the number of half line feeds, otherwise it is the number of whole line * feeds. */ -void +static void flush_blanks(void) { int half, i, nb; @@ -389,7 +389,7 @@ flush_blanks(void) * Write a line to stdout taking care of space to tab conversion (-h flag) * and character set shifts. */ -void +static void flush_line(LINE *l) { CHAR *c, *endc; @@ -502,7 +502,7 @@ flush_line(LINE *l) static LINE *line_freelist; -LINE * +static LINE * alloc_line(void) { LINE *l; @@ -523,7 +523,7 @@ alloc_line(void) return (l); } -void +static void free_line(LINE *l) { @@ -531,7 +531,7 @@ free_line(LINE *l) line_freelist = l; } -void +static void usage(void) { @@ -539,7 +539,7 @@ usage(void) exit(1); } -void +static void dowarn(int line) {