Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/fold static + __dead



details:   https://anonhg.NetBSD.org/src/rev/8619f83de399
branches:  trunk
changeset: 769241:8619f83de399
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Sep 04 20:24:59 2011 +0000

description:
static + __dead

diffstat:

 usr.bin/fold/fold.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r 3d1ecfb5fc12 -r 8619f83de399 usr.bin/fold/fold.c
--- a/usr.bin/fold/fold.c       Sun Sep 04 20:15:57 2011 +0000
+++ b/usr.bin/fold/fold.c       Sun Sep 04 20:24:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fold.c,v 1.16 2009/07/21 01:35:02 ahoka Exp $  */
+/*     $NetBSD: fold.c,v 1.17 2011/09/04 20:24:59 joerg Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)fold.c     8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: fold.c,v 1.16 2009/07/21 01:35:02 ahoka Exp $");
+__RCSID("$NetBSD: fold.c,v 1.17 2011/09/04 20:24:59 joerg Exp $");
 #endif /* not lint */
 
 #include <limits.h>
@@ -55,13 +55,12 @@
 
 #define        DEFLINEWIDTH    80
 
-       int     main(int, char **);
 static void    fold(int);
 static int     new_column_position(int, wint_t);
-static void    usage(void);
+__dead static  void    usage(void);
 
-int count_bytes = 0;
-int split_words = 0;
+static int count_bytes = 0;
+static int split_words = 0;
 
 int
 main(int argc, char **argv)



Home | Main Index | Thread Index | Old Index