Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/495b0ef5ffd9
branches:  trunk
changeset: 769330:495b0ef5ffd9
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Sep 06 18:31:22 2011 +0000

description:
static + __dead

diffstat:

 usr.bin/stat/stat.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (69 lines):

diff -r 06f300918639 -r 495b0ef5ffd9 usr.bin/stat/stat.c
--- a/usr.bin/stat/stat.c       Tue Sep 06 18:30:56 2011 +0000
+++ b/usr.bin/stat/stat.c       Tue Sep 06 18:31:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stat.c,v 1.34 2011/02/16 23:08:29 christos Exp $ */
+/*     $NetBSD: stat.c,v 1.35 2011/09/06 18:31:22 joerg Exp $ */
 
 /*
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: stat.c,v 1.34 2011/02/16 23:08:29 christos Exp $");
+__RCSID("$NetBSD: stat.c,v 1.35 2011/09/06 18:31:22 joerg Exp $");
 #endif
 
 #if ! HAVE_NBTOOL_CONFIG_H
@@ -174,18 +174,18 @@
 #define SHOW_filename  'N'
 #define SHOW_sizerdev  'Z'
 
-void   usage(const char *);
-void   output(const struct stat *, const char *,
+static void    usage(const char *) __dead;
+static void    output(const struct stat *, const char *,
            const char *, int, int, int);
-int    format1(const struct stat *,    /* stat info */
+static int     format1(const struct stat *,    /* stat info */
            const char *,               /* the file name */
            const char *, int,          /* the format string itself */
            char *, size_t,             /* a place to put the output */
            int, int, int, int,         /* the parsed format */
            int, int, int);
 
-const char *timefmt;
-int linkfail;
+static const char *timefmt;
+static int linkfail;
 
 #define addchar(s, c, nl) \
        do { \
@@ -349,7 +349,7 @@
        return (am_readlink ? linkfail : errs);
 }
 
-void
+static void
 usage(const char *synopsis)
 {
 
@@ -360,7 +360,7 @@
 /* 
  * Parses a format string.
  */
-void
+static void
 output(const struct stat *st, const char *file,
     const char *statfmt, int fn, int nonl, int quiet)
 {
@@ -553,7 +553,7 @@
 /*
  * Arranges output according to a single parsed format substring.
  */
-int
+static int
 format1(const struct stat *st,
     const char *file,
     const char *fmt, int flen,



Home | Main Index | Thread Index | Old Index