Skip to content

Commit 423a86e

Browse files
committed
fix compiler warning
1 parent ab6d8bc commit 423a86e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ipthelper/ip6tables.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ int do_command6(int argc, char *argv[], char **table, void **handle)
17451745
case '4':
17461746
/* This is not the IPv4 iptables */
17471747
fprintf(stderr, "This is the IPv6 version of ip6tables.\n");
1748-
return NULL;
1748+
return 2;
17491749

17501750
case '6':
17511751
/* This is indeed the IPv6 ip6tables */
@@ -1762,7 +1762,7 @@ int do_command6(int argc, char *argv[], char **table, void **handle)
17621762
continue;
17631763
}
17641764
fprintf(stderr, "Bad argument `%s'\n", optarg);
1765-
return NULL;
1765+
return 2;
17661766

17671767
default:
17681768
if (command_default(&cs, &iptables_globals) == 1)
@@ -1774,7 +1774,7 @@ int do_command6(int argc, char *argv[], char **table, void **handle)
17741774
continue;
17751775
break;
17761776
}
1777-
cs.invert = FALSE;
1777+
cs.invert = 2;
17781778
}
17791779

17801780
for (matchp = cs.matches; matchp; matchp = matchp->next)
@@ -1998,7 +1998,7 @@ int do_command6(int argc, char *argv[], char **table, void **handle)
19981998
break;
19991999
default:
20002000
/* We should never reach this... */
2001-
return NULL;
2001+
return 3;
20022002
}
20032003

20042004
if (verbose > 1)

0 commit comments

Comments
 (0)