[gnome-control-center] network: Fix return value type



commit 937a5188896f4ec9113c115738bfae42251a947d
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 27 18:20:48 2017 +0200

    network: Fix return value type
    
    We're supposed to return a pointer to GBytes, not a boolean.

 panels/network/net-device-wifi.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 948f388..c394da4 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -326,9 +326,8 @@ device_get_hotspot_ssid (NetDeviceWifi *device_wifi,
         NMSettingWireless *sw;
 
         c = find_connection_for_device (device_wifi, device);
-        if (c == NULL) {
-                return FALSE;
-        }
+        if (c == NULL)
+                return NULL;
 
         sw = nm_connection_get_setting_wireless (c);
         return nm_setting_wireless_get_ssid (sw);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]