git://git.onelab.eu
/
iproute2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync to iproute2-2.6.16-060323
[iproute2.git]
/
misc
/
lnstat.c
diff --git
a/misc/lnstat.c
b/misc/lnstat.c
index
03e6f3f
..
460540e
100644
(file)
--- a/
misc/lnstat.c
+++ b/
misc/lnstat.c
@@
-218,7
+218,7
@@
int main(int argc, char **argv)
MODE_NORMAL,
} mode = MODE_NORMAL;
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];
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) {
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) {
switch (c) {
- int i, len = 0;
- char *tmp, *tok;
case 'c':
count = strtoul(optarg, NULL, 0);
break;
case 'c':
count = strtoul(optarg, NULL, 0);
break;