diff --git a/src/nm-device.c b/src/nm-device.c index 9a1ad148b..db96ccef4 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -667,7 +667,7 @@ reserve_shared_ip (void) guint32 start = (guint32) ntohl (0x0a2a2b01); /* 10.42.43.1 */ guint32 count = 0; - while (g_hash_table_lookup (shared_ips, (gpointer) (start + count))) { + while (g_hash_table_lookup (shared_ips, GUINT_TO_POINTER (start + count))) { count += ntohl (0x100); if (count > ntohl (0xFE00)) { nm_warning ("%s: ran out of shared IP addresses!", __func__); @@ -675,7 +675,7 @@ reserve_shared_ip (void) } } - g_hash_table_insert (shared_ips, (gpointer) (start + count), GUINT_TO_POINTER (TRUE)); + g_hash_table_insert (shared_ips, GUINT_TO_POINTER (start + count), GUINT_TO_POINTER (TRUE)); return start + count; }