summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorMartin Josefsson <gandalf@wlug.westbo.se>2004-05-26 16:04:48 +0000
committerMartin Josefsson <gandalf@wlug.westbo.se>2004-05-26 16:04:48 +0000
commita28d495285ad7dd9f286d63958cf20d74eec6bcb (patch)
treebb98ee50030d4eb2757b490aad389e896f4db537 /iptables-restore.c
parent1eb0081027ee567e822b24377ea614e66c408ff2 (diff)
Get rid of some warnings when compiling 64bit.
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 46590ca9..e21cacc5 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -4,7 +4,7 @@
*
* This code is distributed under the terms of GNU GPL v2
*
- * $Id: iptables-restore.c,v 1.32 2004/02/01 21:46:04 gandalf Exp $
+ * $Id: iptables-restore.c,v 1.33 2004/02/01 22:03:27 gandalf Exp $
*/
#include <getopt.h>
@@ -73,7 +73,7 @@ iptc_handle_t create_handle(const char *tablename, const char* modprobe )
int parse_counters(char *string, struct ipt_counters *ctr)
{
- return (sscanf(string, "[%llu:%llu]", &ctr->pcnt, &ctr->bcnt) == 2);
+ return (sscanf(string, "[%llu:%llu]", (unsigned long long *)&ctr->pcnt, (unsigned long long *)&ctr->bcnt) == 2);
}
/* global new argv and argc */