X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blobmsg.c;h=f31715209013c31a2ec7d0f493fca4c9e6c8b284;hp=b3e485dadb54e9d15fa0dbe8e1b2d96cac5be07e;hb=d07b174de8faf76a20cbe003bfc143552f431f85;hpb=aa01be8ed07f24a375e74c5da7550171d6f9ca8e diff --git a/blobmsg.c b/blobmsg.c index b3e485d..f317152 100644 --- a/blobmsg.c +++ b/blobmsg.c @@ -91,7 +91,7 @@ bool blobmsg_check_attr_list(const struct blob_attr *attr, int type) } int blobmsg_parse_array(const struct blobmsg_policy *policy, int policy_len, - struct blob_attr **tb, void *data, int len) + struct blob_attr **tb, void *data, unsigned int len) { struct blob_attr *attr; int i = 0; @@ -118,7 +118,7 @@ int blobmsg_parse_array(const struct blobmsg_policy *policy, int policy_len, int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len, - struct blob_attr **tb, void *data, int len) + struct blob_attr **tb, void *data, unsigned int len) { struct blobmsg_hdr *hdr; struct blob_attr *attr; @@ -243,7 +243,7 @@ blobmsg_printf(struct blob_buf *buf, const char *name, const char *format, ...) } void * -blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen) +blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, unsigned int maxlen) { struct blob_attr *attr; void *data_dest; @@ -260,7 +260,7 @@ blobmsg_alloc_string_buffer(struct blob_buf *buf, const char *name, int maxlen) } void * -blobmsg_realloc_string_buffer(struct blob_buf *buf, int maxlen) +blobmsg_realloc_string_buffer(struct blob_buf *buf, unsigned int maxlen) { struct blob_attr *attr = blob_next(buf->head); int offset = attr_to_offset(buf, blob_next(buf->head)) + blob_pad_len(attr) - BLOB_COOKIE; @@ -294,7 +294,7 @@ blobmsg_add_string_buffer(struct blob_buf *buf) int blobmsg_add_field(struct blob_buf *buf, int type, const char *name, - const void *data, int len) + const void *data, unsigned int len) { struct blob_attr *attr; void *data_dest;