Module Name: src Committed By: christos Date: Mon Apr 8 17:39:11 UTC 2013
Modified Files: src/usr.sbin/mtree: mtree.c Log Message: move flags only used in main() inside main(), from Ed Schouten To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.sbin/mtree/mtree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/mtree/mtree.c diff -u src/usr.sbin/mtree/mtree.c:1.47 src/usr.sbin/mtree/mtree.c:1.48 --- src/usr.sbin/mtree/mtree.c:1.47 Sun Feb 3 14:15:17 2013 +++ src/usr.sbin/mtree/mtree.c Mon Apr 8 13:39:11 2013 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19 #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 @@ __RCSID("$NetBSD: mtree.c,v 1.47 2013/02 #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 @@ main(int argc, char **argv) { 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;