fix numbering in switch(): we don't have "del" anymore,

substring match on "delete" handles it ok. But we (I?)
forgot to renumber case labels...
This commit is contained in:
Denis Vlasenko
2007-01-27 13:13:45 +00:00
parent 5ff8f3d7fd
commit fd94efa41f
2 changed files with 16 additions and 14 deletions

View File

@@ -33,8 +33,9 @@ int ip_main(int argc, char **argv)
if (ENABLE_FEATURE_IP_LINK && matches(argv[1], "link") == 0) {
ret = do_iplink(argc-2, argv+2);
}
if (ENABLE_FEATURE_IP_TUNNEL &&
(matches(argv[1], "tunnel") == 0 || strcmp(argv[1], "tunl") == 0)) {
if (ENABLE_FEATURE_IP_TUNNEL
&& (matches(argv[1], "tunnel") == 0 || strcmp(argv[1], "tunl") == 0)
) {
ret = do_iptunnel(argc-2, argv+2);
}
if (ENABLE_FEATURE_IP_RULE && matches(argv[1], "rule") == 0) {