Commit 3c1259fd authored by Robert Love's avatar Robert Love Committed by Robert Love
Browse files

2005-10-17  Robert Love  <rml@novell.com>

        * src/nm-ip4-config.c: use GPOINTER_TO_UINT and not a straight cast
          in order to remain 64-bit clean.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1031 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 561df197
......@@ -5,8 +5,13 @@
2005-10-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerDebian.c,
src/backends/NetworkManagerRedHat.c,
* src/nm-ip4-config.c: use GPOINTER_TO_UINT and not a straight cast
in order to remain 64-bit clean.
2005-10-17 Robert Love <rml@novell.com>
* src/backends/NetworkManagerDebian.c,
src/backends/NetworkManagerRedHat,
src/backends/NetworkManagerSuSE.c: allow '#' as a valid resolv.conf
comment delimiter.
......
......@@ -182,12 +182,12 @@ void nm_ip4_config_add_nameserver (NMIP4Config *config, guint32 nameserver)
guint32 nm_ip4_config_get_nameserver (NMIP4Config *config, guint index)
{
guint32 nameserver;
guint nameserver;
g_return_val_if_fail (config != NULL, 0);
g_return_val_if_fail (index < g_slist_length (config->nameservers), 0);
if ((nameserver = (guint32) g_slist_nth_data (config->nameservers, index)))
if ((nameserver = GPOINTER_TO_UINT (g_slist_nth_data (config->nameservers, index))))
return nameserver;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment