summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-25 20:59:56 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-25 20:59:56 +0200
commitbdbd2ea3fb127c7dfb2f591e4d2ab11a2c106e0a (patch)
tree968119e03a7b6565aef6ae85f212d8bcb04f0c00
parent0a80e92c03a90d5f6593b6af171bbed5480e0f55 (diff)
downloadunitd-bdbd2ea3fb127c7dfb2f591e4d2ab11a2c106e0a.tar
unitd-bdbd2ea3fb127c7dfb2f591e4d2ab11a2c106e0a.zip
service: remove unused argument to service_update()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--service/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/service.c b/service/service.c
index bfc8d49..23532e8 100644
--- a/service/service.c
+++ b/service/service.c
@@ -103,7 +103,7 @@ static const struct blobmsg_policy service_set_attrs[__SERVICE_SET_MAX] = {
};
static int
-service_update(struct service *s, struct blob_attr *config, struct blob_attr **tb, bool add)
+service_update(struct service *s, struct blob_attr **tb, bool add)
{
struct blob_attr *cur;
int rem;
@@ -229,7 +229,7 @@ service_handle_set(struct ubus_context *ctx, struct ubus_object *obj,
s = avl_find_element(&services, name, s, avl);
if (s) {
DEBUG(2, "Update service %s\n", name);
- return service_update(s, msg, tb, add);
+ return service_update(s, tb, add);
}
DEBUG(2, "Create service %s\n", name);
@@ -237,7 +237,7 @@ service_handle_set(struct ubus_context *ctx, struct ubus_object *obj,
if (!s)
return UBUS_STATUS_UNKNOWN_ERROR;
- ret = service_update(s, msg, tb, add);
+ ret = service_update(s, tb, add);
if (ret)
return ret;