From 0fccce4445b1961451ce3d99a99c1c0defbd4490 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 14 Dec 2012 13:11:40 +0100 Subject: remove the "method" argument for object subscription Signed-off-by: Felix Fietkau --- ubusd_obj.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ubusd_obj.c') diff --git a/ubusd_obj.c b/ubusd_obj.c index 69ca8b8..3859c45 100644 --- a/ubusd_obj.c +++ b/ubusd_obj.c @@ -164,12 +164,12 @@ free: return NULL; } -void ubus_subscribe(struct ubus_object *obj, struct ubus_object *target, const char *method) +void ubus_subscribe(struct ubus_object *obj, struct ubus_object *target) { struct ubus_subscription *s; bool first = list_empty(&target->subscribers); - s = calloc(1, sizeof(*s) + strlen(method) + 1); + s = calloc(1, sizeof(*s)); if (!s) return; @@ -177,7 +177,6 @@ void ubus_subscribe(struct ubus_object *obj, struct ubus_object *target, const c s->target = target; list_add(&s->list, &target->subscribers); list_add(&s->target_list, &obj->target_list); - strcpy(s->method, method); if (first) ubus_notify_subscription(target); -- cgit v1.2.1