iptaccount: fix being a no-op program

A PPC system has been observed where "char" is unsigned; with that,
the getopt loop will never terminate because optchar != -1 could not
happen.
This commit is contained in:
Jan Engelhardt
2013-03-19 22:16:28 +01:00
parent cb1cdb190f
commit aceca54912
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
struct ipt_ACCOUNT_context ctx;
struct ipt_acc_handle_ip *entry;
int i;
char optchar;
int optchar;
bool doHandleUsage = false, doHandleFree = false, doTableNames = false;
bool doFlush = false, doContinue = false, doCSV = false;