Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mtree move flags only used in main() inside main(), ...



details:   https://anonhg.NetBSD.org/src/rev/403dda8e1d49
branches:  trunk
changeset: 785976:403dda8e1d49
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 08 17:39:11 2013 +0000

description:
move flags only used in main() inside main(), from Ed Schouten

diffstat:

 usr.sbin/mtree/mtree.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r d215403f676c -r 403dda8e1d49 usr.sbin/mtree/mtree.c
--- a/usr.sbin/mtree/mtree.c    Mon Apr 08 15:55:58 2013 +0000
+++ b/usr.sbin/mtree/mtree.c    Mon Apr 08 17:39:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtree.c,v 1.47 2013/02/03 19:15:17 christos Exp $      */
+/*     $NetBSD: mtree.c,v 1.48 2013/04/08 17:39:11 christos Exp $      */
 
 /*-
  * Copyright (c) 1989, 1990, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mtree.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mtree.c,v 1.47 2013/02/03 19:15:17 christos Exp $");
+__RCSID("$NetBSD: mtree.c,v 1.48 2013/04/08 17:39:11 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -59,8 +59,8 @@
 #include "extern.h"
 
 int    ftsoptions = FTS_PHYSICAL;
-int    bflag, cflag, Cflag, dflag, Dflag, eflag, iflag, jflag, lflag, mflag,
-       nflag, qflag, rflag, sflag, tflag, uflag, Uflag, wflag;
+int    bflag, dflag, eflag, iflag, jflag, lflag, mflag, nflag, qflag, rflag,
+       sflag, tflag, uflag;
 char   fullpath[MAXPATHLEN];
 
 static struct {
@@ -79,11 +79,13 @@
 {
        int     ch, status;
        unsigned int    i;
+       int     cflag, Cflag, Dflag, Uflag, wflag;
        char    *dir, *p;
        FILE    *spec1, *spec2;
 
        setprogname(argv[0]);
 
+       cflag = Cflag = Dflag = Uflag = wflag = 0;
        dir = NULL;
        init_excludes();
        spec1 = stdin;



Home | Main Index | Thread Index | Old Index