mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 09:04:55 +00:00
2007-11-13 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.h libnm-glib/nm-device-802-11-wireless.c - (nm_device_802_11_wireless_get_hw_address): return should be const * test/nm-tool.c libnm-glib/libnm-glib-test.c - Fixes for above change git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3082 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
bc17ea6d0a
commit
a2b0d04517
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2007-11-13 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-glib/nm-device-802-11-wireless.h
|
||||
libnm-glib/nm-device-802-11-wireless.c
|
||||
- (nm_device_802_11_wireless_get_hw_address): return should be const
|
||||
|
||||
* test/nm-tool.c
|
||||
libnm-glib/libnm-glib-test.c
|
||||
- Fixes for above change
|
||||
|
||||
2007-11-12 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/supplicant-manager/nm-supplicant-settings-verify.c
|
||||
|
|
|
@ -148,7 +148,7 @@ dump_access_point (NMAccessPoint *ap)
|
|||
static void
|
||||
dump_wireless (NMDevice80211Wireless *device)
|
||||
{
|
||||
char *str;
|
||||
const char *str;
|
||||
GSList *iter;
|
||||
GSList *aps;
|
||||
|
||||
|
@ -157,7 +157,6 @@ dump_wireless (NMDevice80211Wireless *device)
|
|||
|
||||
str = nm_device_802_11_wireless_get_hw_address (device);
|
||||
g_print ("MAC: %s\n", str);
|
||||
g_free (str);
|
||||
|
||||
g_print ("AccessPoints:\n");
|
||||
aps = nm_device_802_11_wireless_get_access_points (device);
|
||||
|
|
|
@ -73,7 +73,7 @@ nm_device_802_11_wireless_set_hw_address (NMDevice80211Wireless *self,
|
|||
g_object_notify (G_OBJECT (self), NM_DEVICE_802_11_WIRELESS_HW_ADDRESS);
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
nm_device_802_11_wireless_get_hw_address (NMDevice80211Wireless *device)
|
||||
{
|
||||
NMDevice80211WirelessPrivate *priv;
|
||||
|
|
|
@ -36,7 +36,7 @@ GType nm_device_802_11_wireless_get_type (void);
|
|||
NMDevice80211Wireless *nm_device_802_11_wireless_new (DBusGConnection *connection,
|
||||
const char *path);
|
||||
|
||||
char * nm_device_802_11_wireless_get_hw_address (NMDevice80211Wireless *device);
|
||||
const char * nm_device_802_11_wireless_get_hw_address (NMDevice80211Wireless *device);
|
||||
int nm_device_802_11_wireless_get_mode (NMDevice80211Wireless *device);
|
||||
guint32 nm_device_802_11_wireless_get_bitrate (NMDevice80211Wireless *device);
|
||||
guint32 nm_device_802_11_wireless_get_capabilities (NMDevice80211Wireless *device);
|
||||
|
|
|
@ -207,7 +207,7 @@ detail_device (gpointer data, gpointer user_data)
|
|||
if (NM_IS_DEVICE_802_3_ETHERNET (device))
|
||||
tmp = nm_device_802_3_ethernet_get_hw_address (NM_DEVICE_802_3_ETHERNET (device));
|
||||
else if (NM_IS_DEVICE_802_11_WIRELESS (device))
|
||||
tmp = nm_device_802_11_wireless_get_hw_address (NM_DEVICE_802_11_WIRELESS (device));
|
||||
tmp = g_strdup (nm_device_802_11_wireless_get_hw_address (NM_DEVICE_802_11_WIRELESS (device)));
|
||||
|
||||
if (tmp) {
|
||||
print_string ("HW Address", tmp);
|
||||
|
|
Loading…
Reference in a new issue