From 1eb6a39c65de03d1f4fd6f60b79f128df34da9ff Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 24 Dec 2009 07:11:44 -0800 Subject: [PATCH] Use failed as label name instead of error --- plugins/ofono.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 162028b..49d9c7a 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -1294,10 +1294,10 @@ static int static_network_set_connected( struct connman_element *element; if (parent->ipv4.address == NULL) - goto error; + goto failed; if (parent->ipv4.netmask == NULL) - goto error; + goto failed; element = connman_element_create(NULL); if (element == NULL) { @@ -1310,7 +1310,7 @@ static int static_network_set_connected( if (connman_element_register(element, parent) < 0) { connman_element_unref(element); - goto error; + goto failed; } } else cleanup_ipconfig(parent); @@ -1319,7 +1319,7 @@ static int static_network_set_connected( return 0; -error: +failed: connman_network_set_error(pending_network, CONNMAN_NETWORK_ERROR_ASSOCIATE_FAIL); -- 2.7.4