X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_proto.c;h=1bf6249507f9990d97ea7e79f7cc83a79945c81f;hp=550e11631706faad6651bf31d267c0e4b09dcf34;hb=cb1feedb5e1388d7aea8bddef1284690c590874f;hpb=f8d55af76b7a758a134bc816d9a34a7ca4325e32 diff --git a/ubusd_proto.c b/ubusd_proto.c index 550e116..1bf6249 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -169,7 +169,7 @@ static int ubusd_handle_invoke(struct ubus_client *cl, struct ubus_msg_buf *ub, if (!attr[UBUS_ATTR_METHOD] || !attr[UBUS_ATTR_OBJID]) return UBUS_STATUS_INVALID_ARGUMENT; - id = ubus_find_id(&objects, blob_get_int32(attr[UBUS_ATTR_OBJID])); + id = ubus_find_id(&objects, blob_get_u32(attr[UBUS_ATTR_OBJID])); if (!id) return UBUS_STATUS_NOT_FOUND; @@ -209,7 +209,7 @@ static int ubusd_handle_response(struct ubus_client *cl, struct ubus_msg_buf *ub (ub->hdr.type == UBUS_MSG_DATA && !attr[UBUS_ATTR_DATA])) goto error; - obj = ubusd_find_object(blob_get_int32(attr[UBUS_ATTR_OBJID])); + obj = ubusd_find_object(blob_get_u32(attr[UBUS_ATTR_OBJID])); if (!obj) goto error; @@ -220,7 +220,7 @@ static int ubusd_handle_response(struct ubus_client *cl, struct ubus_msg_buf *ub if (!cl) goto error; - ub->hdr.peer = blob_get_int32(attr[UBUS_ATTR_OBJID]); + ub->hdr.peer = blob_get_u32(attr[UBUS_ATTR_OBJID]); ubus_msg_send(cl, ub, true); return -1;