This commit was generated by cvs2svn to compensate for changes in r2587,
[iproute2.git] / misc / lnstat.c
index 03e6f3f..460540e 100644 (file)
@@ -218,7 +218,7 @@ int main(int argc, char **argv)
                MODE_NORMAL,
        } mode = MODE_NORMAL;
 
-       unsigned long count = 0;
+       unsigned long count = 1;
        static struct field_params fp;
        int num_req_files = 0;
        char *req_files[LNSTAT_MAX_FILES];
@@ -242,9 +242,10 @@ int main(int argc, char **argv)
 
        while ((c = getopt_long(argc, argv,"Vc:df:h?i:k:s:w:", 
                                opts, NULL)) != -1) {
+               int i, len = 0;
+               char *tmp, *tok;
+
                switch (c) {
-                       int i, len = 0;
-                       char *tmp, *tok;
                        case 'c':
                                count = strtoul(optarg, NULL, 0);
                                break;