mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 14:50:30 +01:00
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
This commit is contained in:
parent
561df19768
commit
3c1259fd9f
2 changed files with 9 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue