diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-28 12:38:33 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-28 12:38:33 +0100 |
commit | 764bf0b499f2265ac553d05a2cf978f85703ee70 (patch) | |
tree | 9c0d12bc57826e0bc3dc881beeb9ba3d7a5b3c4d | |
parent | c185e186787c4a6dc6cadb69a6e69665b1c3ad4b (diff) | |
download | connman-gnome-764bf0b499f2265ac553d05a2cf978f85703ee70.tar.gz |
connman-client: Warning fixes
-rw-r--r-- | common/connman-client.c | 8 | ||||
-rw-r--r-- | properties/main.c | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/common/connman-client.c b/common/connman-client.c index e907cc2..0738632 100644 --- a/common/connman-client.c +++ b/common/connman-client.c @@ -604,8 +604,7 @@ void connman_client_enable_technology(ConnmanClient *client, const char *network { ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client); DBusGProxy *proxy; - int ret; - + if (network== NULL) return; @@ -613,7 +612,7 @@ void connman_client_enable_technology(ConnmanClient *client, const char *network if (proxy == NULL) return; - ret = connman_enable_technology(proxy, technology, NULL); + connman_enable_technology(proxy, technology, NULL); g_object_unref(proxy); } @@ -623,7 +622,6 @@ void connman_client_disable_technology(ConnmanClient *client, const char *networ { ConnmanClientPrivate *priv = CONNMAN_CLIENT_GET_PRIVATE(client); DBusGProxy *proxy; - int ret; if (network == NULL) return; @@ -632,7 +630,7 @@ void connman_client_disable_technology(ConnmanClient *client, const char *networ if (proxy == NULL) return; - ret = connman_disable_technology(proxy, technology, NULL); + connman_disable_technology(proxy, technology, NULL); g_object_unref(proxy); } diff --git a/properties/main.c b/properties/main.c index a09c721..de8f250 100644 --- a/properties/main.c +++ b/properties/main.c @@ -497,8 +497,6 @@ static GtkWidget *create_window(void) int main(int argc, char *argv[]) { - GtkWidget *window; - bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); @@ -511,7 +509,7 @@ int main(int argc, char *argv[]) client = connman_client_new(); - window = create_window(); + create_window(); gtk_main(); |