Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makefs Move local variable declaration to start of ...



details:   https://anonhg.NetBSD.org/src/rev/83ef6a62b912
branches:  trunk
changeset: 583627:83ef6a62b912
user:      he <he%NetBSD.org@localhost>
date:      Mon Aug 15 06:41:06 2005 +0000

description:
Move local variable declaration to start of block (also start of function).
Fixes build problem for vax.

diffstat:

 usr.sbin/makefs/cd9660.c |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r af989f43078a -r 83ef6a62b912 usr.sbin/makefs/cd9660.c
--- a/usr.sbin/makefs/cd9660.c  Sun Aug 14 21:52:38 2005 +0000
+++ b/usr.sbin/makefs/cd9660.c  Mon Aug 15 06:41:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660.c,v 1.1 2005/08/13 01:53:01 fvdl Exp $  */
+/*     $NetBSD: cd9660.c,v 1.2 2005/08/15 06:41:06 he Exp $    */
 
 /*
  * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
@@ -101,7 +101,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: cd9660.c,v 1.1 2005/08/13 01:53:01 fvdl Exp $");
+__RCSID("$NetBSD: cd9660.c,v 1.2 2005/08/15 06:41:06 he Exp $");
 #endif  /* !__lint */
 
 #include <string.h>
@@ -301,10 +301,6 @@
 {
        char *var, *val;
        int     rv;
-
-       if (cd9660_defaults_set == 0)
-               cd9660_set_defaults();
-
        /* Set up allowed options - integer options ONLY */
        option_t cd9660_options[] = {
                { "l", &diskStructure.isoLevel, 1, 3, "ISO Level" },
@@ -315,7 +311,10 @@
                  "Turns on verbose output"},
                { NULL }
        };
-       
+
+       if (cd9660_defaults_set == 0)
+               cd9660_set_defaults();
+
        /*
         * Todo : finish implementing this, and make a function that
         * parses them



Home | Main Index | Thread Index | Old Index