diff options
author | ed <ed@FreeBSD.org> | 2011-11-06 08:14:22 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-06 08:14:22 +0000 |
commit | 61bd4fddd230f6e48500d11d8d8cfe548337d276 (patch) | |
tree | 55bd9c3dd29ecaea28ec732b67d335a38a53565b /usr.bin/col/col.c | |
parent | a86a6f0c857c4fd5338657bdb76c5c7db715b9ee (diff) | |
download | FreeBSD-src-61bd4fddd230f6e48500d11d8d8cfe548337d276.zip FreeBSD-src-61bd4fddd230f6e48500d11d8d8cfe548337d276.tar.gz |
Add missing static keywords to col(1)
Diffstat (limited to 'usr.bin/col/col.c')
-rw-r--r-- | usr.bin/col/col.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/usr.bin/col/col.c b/usr.bin/col/col.c index 1544608..78e9780 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); - -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 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); + +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) { |