do not reverse method sorting order
authorFelix Fietkau <nbd@openwrt.org>
Sun, 27 Mar 2011 00:39:14 +0000 (01:39 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 27 Mar 2011 00:39:14 +0000 (01:39 +0100)
ubusd_obj.c

index 2d78796..3dd2d7f 100644 (file)
@@ -31,7 +31,7 @@ static bool ubus_create_obj_method(struct ubus_object_type *type, struct blob_at
        if (!m)
                return false;
 
        if (!m)
                return false;
 
-       list_add(&m->list, &type->methods);
+       list_add_tail(&m->list, &type->methods);
        memcpy(m->data, attr, bloblen);
        m->name = blobmsg_name(m->data);
 
        memcpy(m->data, attr, bloblen);
        m->name = blobmsg_name(m->data);