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)
 {
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to