From 1cd6b098b484fb5993a5e55b1d8aaa97db38d416 Mon Sep 17 00:00:00 2001 From: Grant Erickson Date: Mon, 2 May 2011 16:50:22 -0700 Subject: [PATCH] network: Return an Error Appropriate for Function Signature Currently, one of the return paths in __connman_network_set_ipconfig returns FALSE, inconsistently with its function signature return type of 'int'. This patch returns the error code specified in 'ret'. --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index e7ae5d6..123857e 100644 --- a/src/network.c +++ b/src/network.c @@ -1176,7 +1176,7 @@ int __connman_network_set_ipconfig(struct connman_network *network, if (ret != 0) { connman_network_set_error(network, CONNMAN_NETWORK_ERROR_ASSOCIATE_FAIL); - return FALSE; + return ret; } break; case CONNMAN_IPCONFIG_METHOD_DHCP: -- 2.7.4