iptables-test: Fix build failure
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Fri, 12 Nov 2010 14:18:52 +0000 (15:18 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 12 Nov 2010 14:18:52 +0000 (15:18 +0100)
tools/iptables-test.c:786:5: error: cast from pointer to integer of
different size
tools/iptables-test.c:788:5: error: cast from pointer to integer of
different size

tools/iptables-test.c

index e8e9228..753847a 100644 (file)
@@ -781,11 +781,11 @@ static void connman_iptables_dump_hook(struct connman_iptables *table)
        printf("hooks: \n");
        for (i = 0; i < NF_INET_NUMHOOKS; i++) {
                if ((table->info->valid_hooks & (1 << i)))
-                       printf("%s entry 0x%x underflow 0x%x (0x%x)\n",
+                       printf("%s entry %p underflow %p (%#x)\n",
                                hooknames[i],
-                               (unsigned int)table->blob_entries->entrytable +
+                               table->blob_entries->entrytable +
                                                table->info->hook_entry[i],
-                               (unsigned int)table->blob_entries->entrytable +
+                               table->blob_entries->entrytable +
                                                table->info->underflow[i],
                                        table->info->underflow[i]);
        }