mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user