After dropping the unused decrement of argc in the function's tail, it
can fully take over what iargc has been used for.
Signed-off-by: Phil Sutter <phil@nwl.cc>
int c;
char **argv = *argv_p;
- int argc = 0, iargc = 0;
+ int argc = 0;
char k[16];
int size = 0;
int iok = 0, ok = 0;
break;
}
}
- iargc = argc = i;
+ argc = i;
}
if (argc <= 2) {
}
}
- if (iargc > optind) {
+ if (argc > optind) {
if (matches(argv[optind], "index") == 0) {
if (get_u32(&index, argv[optind + 1], 10)) {
fprintf(stderr, "Illegal \"index\"\n");
addattr_l(n, MAX_MSG, TCA_IPT_TARG, m->t, m->t->u.target_size);
tail->rta_len = (void *) NLMSG_TAIL(n) - (void *) tail;
- argc -= optind;
argv += optind;
- *argc_p -= iargc;
+ *argc_p -= argc;
*argv_p = argv;
optind = 0;