From owner-svn-src-head@FreeBSD.ORG Sun Nov 6 08:14:22 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A449410657CB; Sun, 6 Nov 2011 08:14:22 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7A9EE8FC08; Sun, 6 Nov 2011 08:14:22 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA68EMJm008047; Sun, 6 Nov 2011 08:14:22 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA68EMlj008045; Sun, 6 Nov 2011 08:14:22 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201111060814.pA68EMlj008045@svn.freebsd.org> From: Ed Schouten Date: Sun, 6 Nov 2011 08:14:22 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227157 - head/usr.bin/col X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 08:14:22 -0000 Author: ed Date: Sun Nov 6 08:14:22 2011 New Revision: 227157 URL: http://svn.freebsd.org/changeset/base/227157 Log: Add missing static keywords to col(1) Modified: head/usr.bin/col/col.c Modified: head/usr.bin/col/col.c ============================================================================== --- head/usr.bin/col/col.c Sun Nov 6 08:14:16 2011 (r227156) +++ head/usr.bin/col/col.c Sun Nov 6 08:14:22 2011 (r227157) @@ -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) {