summaryrefslogtreecommitdiffstats
path: root/libiptc
diff options
context:
space:
mode:
authorgandalf <gandalf>2004-05-26 16:04:48 +0000
committergandalf <gandalf>2004-05-26 16:04:48 +0000
commitc5a2851e96afd3e06785551ab90eb1157407e6cb (patch)
treebb98ee50030d4eb2757b490aad389e896f4db537 /libiptc
parent74c5da055ef1239a504d4624a7e1a1e5e46a5cf0 (diff)
Get rid of some warnings when compiling 64bit.
Diffstat (limited to 'libiptc')
-rw-r--r--libiptc/libip4tc.c2
-rw-r--r--libiptc/libip6tc.c2
-rw-r--r--libiptc/libiptc.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c
index 76a8281..d394315 100644
--- a/libiptc/libip4tc.c
+++ b/libiptc/libip4tc.c
@@ -145,7 +145,7 @@ dump_entry(STRUCT_ENTRY *e, const TC_HANDLE_T handle)
printf("Flags: %02X\n", e->ip.flags);
printf("Invflags: %02X\n", e->ip.invflags);
printf("Counters: %llu packets, %llu bytes\n",
- e->counters.pcnt, e->counters.bcnt);
+ (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
printf("Cache: %08X ", e->nfcache);
if (e->nfcache & NFC_ALTERED) printf("ALTERED ");
if (e->nfcache & NFC_UNKNOWN) printf("UNKNOWN ");
diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c
index f7947db..6400ce3 100644
--- a/libiptc/libip6tc.c
+++ b/libiptc/libip6tc.c
@@ -176,7 +176,7 @@ dump_entry(struct ip6t_entry *e, const ip6tc_handle_t handle)
printf("Flags: %02X\n", e->ipv6.flags);
printf("Invflags: %02X\n", e->ipv6.invflags);
printf("Counters: %llu packets, %llu bytes\n",
- e->counters.pcnt, e->counters.bcnt);
+ (unsigned long long)e->counters.pcnt, (unsigned long long)e->counters.bcnt);
printf("Cache: %08X ", e->nfcache);
if (e->nfcache & NFC_ALTERED) printf("ALTERED ");
if (e->nfcache & NFC_UNKNOWN) printf("UNKNOWN ");
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 3ff7e27..b29111d 100644
--- a/libiptc/libiptc.c
+++ b/libiptc/libiptc.c
@@ -1,4 +1,4 @@
-/* Library which manipulates firewall rules. Version $Revision: 1.45 $ */
+/* Library which manipulates firewall rules. Version $Revision: 1.46 $ */
/* Architecture of firewall rules is as follows:
*
@@ -134,8 +134,8 @@ entry2index(const TC_HANDLE_T h, const STRUCT_ENTRY *seek)
if (ENTRY_ITERATE(h->entries.entrytable, h->entries.size,
get_number, seek, &pos) == 0) {
- fprintf(stderr, "ERROR: offset %i not an entry!\n",
- (char *)seek - (char *)h->entries.entrytable);
+ fprintf(stderr, "ERROR: offset %u not an entry!\n",
+ (unsigned int)((char *)seek - (char *)h->entries.entrytable));
abort();
}
return pos;