summaryrefslogtreecommitdiffstats
path: root/libiptc/libiptc.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 /libiptc/libiptc.c
parent1eb0081027ee567e822b24377ea614e66c408ff2 (diff)
Get rid of some warnings when compiling 64bit.
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r--libiptc/libiptc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 3ff7e274..b29111df 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;