NetworkManager r3743 - trunk/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3743 - trunk/src
- Date: Tue, 10 Jun 2008 20:47:12 +0000 (UTC)
Author: dcbw
Date: Tue Jun 10 20:47:12 2008
New Revision: 3743
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3743&view=rev
Log:
use GUINT_TO_POINTER
Modified:
trunk/src/nm-device.c
Modified: trunk/src/nm-device.c
==============================================================================
--- trunk/src/nm-device.c (original)
+++ trunk/src/nm-device.c Tue Jun 10 20:47:12 2008
@@ -667,7 +667,7 @@
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 @@
}
}
- 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]