diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-07-05 16:21:22 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-13 09:55:48 +0100 |
commit | be146ad2bce0b5377433fa2fe6602b3d4c14dead (patch) | |
tree | 8b567230e7af0384013a119c818aacf3834e1b4b | |
parent | e02813b2cc62f672127360e7515017c02df7af18 (diff) | |
download | ubus-be146ad2bce0b5377433fa2fe6602b3d4c14dead.tar.gz |
ubusd: rename goto label from `error` to `out`
Semantic has changed a bit.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
-rw-r--r-- | ubusd_proto.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ubusd_proto.c b/ubusd_proto.c index 441d084..b084b86 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -345,22 +345,22 @@ static int ubusd_handle_response(struct ubus_client *cl, struct ubus_msg_buf *ub if (!attr[UBUS_ATTR_OBJID] || (ub->hdr.type == UBUS_MSG_STATUS && !attr[UBUS_ATTR_STATUS]) || (ub->hdr.type == UBUS_MSG_DATA && !attr[UBUS_ATTR_DATA])) - goto error; + goto out; obj = ubusd_find_object(blob_get_u32(attr[UBUS_ATTR_OBJID])); if (!obj) - goto error; + goto out; if (cl != obj->client) - goto error; + goto out; cl = ubusd_get_client_by_id(ub->hdr.peer); if (!cl) - goto error; + goto out; ub->hdr.peer = blob_get_u32(attr[UBUS_ATTR_OBJID]); ubus_msg_send(cl, ub); -error: +out: return -1; } |