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 2d7879600d75435c1070a2dd5881cceb2e6d952c..3dd2d7fc3eba0c8ecd11b653ae51914b0499e0f9 100644 (file)
@@ -31,7 +31,7 @@ static bool ubus_create_obj_method(struct ubus_object_type *type, struct blob_at
        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);