summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-24 07:11:44 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-24 07:11:44 -0800
commit1eb6a39c65de03d1f4fd6f60b79f128df34da9ff (patch)
treee932019196c87d225b66e1d8dd9d899f55d34daf
parent87e6b29bf24c381c2f3ede4227d445305f496f56 (diff)
downloadconnman-1eb6a39c65de03d1f4fd6f60b79f128df34da9ff.tar.gz
connman-1eb6a39c65de03d1f4fd6f60b79f128df34da9ff.tar.bz2
connman-1eb6a39c65de03d1f4fd6f60b79f128df34da9ff.zip
Use failed as label name instead of error
-rw-r--r--plugins/ofono.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 162028ba..49d9c7ab 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);