---
gdhcp/client.c | 3 ---
gweb/gresolv.c | 4 ++--
plugins/wifi.c | 2 --
src/6to4.c | 4 +---
src/network.c | 6 ------
src/task.c | 4 ++--
6 files changed, 5 insertions(+), 18 deletions(-)
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 8441104..4a873bf 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -202,7 +202,6 @@ static int send_discover(GDHCPClient *dhcp_client, uint32_t
requested)
static int send_select(GDHCPClient *dhcp_client)
{
struct dhcp_packet packet;
- struct in_addr addr;
debug(dhcp_client, "sending DHCP select request");
@@ -218,8 +217,6 @@ static int send_select(GDHCPClient *dhcp_client)
add_send_options(dhcp_client, &packet);
- addr.s_addr = dhcp_client->requested_ip;
-
return dhcp_send_raw_packet(&packet, INADDR_ANY, CLIENT_PORT,
INADDR_BROADCAST, SERVER_PORT,
MAC_BCAST_ADDR, dhcp_client->ifindex);
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index 632f0c3..a15d7a6 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -623,7 +623,7 @@ static void parse_response(struct resolv_nameserver
*nameserver,
GList *list;
ns_msg msg;
ns_rr rr;
- int i, n, rcode, count;
+ int i, rcode, count;
debug(resolv, "response from %s", nameserver->address);
@@ -675,7 +675,7 @@ static void parse_response(struct resolv_nameserver
*nameserver,
lookup->ipv4_query = NULL;
}
- for (i = 0, n = 0; i < count; i++) {
+ for (i = 0; i < count; i++) {
ns_parserr(&msg, ns_s_an, i, &rr);
if (ns_rr_class(rr) != ns_c_in)
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 93ae901..119f7c7 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -916,7 +916,6 @@ static void ap_create_callback(int result,
void *user_data)
{
struct wifi_tethering_info *info = user_data;
- struct connman_technology *technology;
DBG("result %d ifname %s", result,
g_supplicant_interface_get_ifname(interface));
@@ -932,7 +931,6 @@ static void ap_create_callback(int result,
}
info->wifi->interface = interface;
- technology = info->technology;
g_supplicant_interface_set_data(interface, info->wifi);
if (g_supplicant_interface_set_apscan(interface, 2) < 0)
diff --git a/src/6to4.c b/src/6to4.c
index 3877bfb..5e75223 100644
--- a/src/6to4.c
+++ b/src/6to4.c
@@ -464,7 +464,7 @@ int __connman_6to4_probe(struct connman_service *service)
{
struct connman_ipconfig *ip4config, *ip6config;
enum connman_ipconfig_method method;
- unsigned int a, b, c, d;
+ unsigned int a, b;
struct in_addr ip4addr;
in_addr_t addr;
const char *address;
@@ -502,8 +502,6 @@ int __connman_6to4_probe(struct connman_service *service)
a = (addr & 0xff000000) >> 24;
b = (addr & 0x00ff0000) >> 16;
- c = (addr & 0x0000ff00) >> 8;
- d = addr & 0x000000ff;
/* 6to4 tunnel is only usable if we have a public IPv4 address */
if (a == 10 || (a == 192 && b == 168) ||
diff --git a/src/network.c b/src/network.c
index 123857e..cea158c 100644
--- a/src/network.c
+++ b/src/network.c
@@ -819,15 +819,12 @@ static int manual_ipv6_set(struct connman_network
*network,
static void autoconf_ipv6_set(struct connman_network *network)
{
struct connman_service *service;
- struct connman_ipconfig *ipconfig;
const char *nameserver = NULL;
DBG("network %p", network);
service = __connman_service_lookup_from_network(network);
- ipconfig = __connman_service_get_ip6config(service);
-
__connman_device_increase_connections(network->device);
__connman_device_set_network(network->device, network);
@@ -1011,7 +1008,6 @@ connman_bool_t connman_network_get_associating(struct
connman_network *network)
*/
int __connman_network_connect(struct connman_network *network)
{
- struct connman_service *service;
int err;
DBG("network %p", network);
@@ -1035,8 +1031,6 @@ int __connman_network_connect(struct connman_network
*network)
__connman_device_disconnect(network->device);
- service = __connman_service_lookup_from_network(network);
-
err = network->driver->connect(network);
if (err < 0) {
if (err == -EINPROGRESS)
diff --git a/src/task.c b/src/task.c
index a74c728..ea8d7a3 100644
--- a/src/task.c
+++ b/src/task.c
@@ -383,13 +383,13 @@ static DBusHandlerResult task_filter(DBusConnection
*connection,
if (dbus_message_get_no_reply(message) == FALSE) {
DBusMessage *reply;
- dbus_bool_t result;
reply = dbus_message_new_method_return(message);
if (reply == NULL)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
- result = dbus_connection_send(connection, reply, NULL);
+ if (dbus_connection_send(connection, reply, NULL) == FALSE)
+ connman_error("Failed to send DBus message");
dbus_message_unref(reply);
}
--
1.7.5.1
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman