fixed a warning
authorAndrew Tridgell <tridge@samba.org>
Fri, 4 Jul 2008 07:04:37 +0000 (17:04 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 4 Jul 2008 07:04:37 +0000 (17:04 +1000)
server/ctdb_takeover.c

index c4b6c82959660e8764fb45aa758572b6708c51cb..10369d4b2c05175c4b8248fc1d957e337466e66a 100644 (file)
@@ -1775,7 +1775,9 @@ int32_t ctdb_control_send_gratious_arp(struct ctdb_context *ctdb, TDB_DATA indat
 
        /* verify the size of indata */
        if (indata.dsize < offsetof(struct ctdb_control_gratious_arp, iface)) {
-               DEBUG(DEBUG_ERR,(__location__ " Too small indata to hold a ctdb_control_gratious_arp structure. Got %u require %u bytes\n", indata.dsize, offsetof(struct ctdb_control_gratious_arp, iface)));
+               DEBUG(DEBUG_ERR,(__location__ " Too small indata to hold a ctdb_control_gratious_arp structure. Got %u require %u bytes\n", 
+                                (unsigned)indata.dsize, 
+                                (unsigned)offsetof(struct ctdb_control_gratious_arp, iface)));
                return -1;
        }
        if (indata.dsize !=