X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blob.c;h=10c1f49e4aa1330df04a326d7033a70493ea22e9;hp=2da7cac7e492819d00e122bcbf3334d0ebb3973e;hb=fd5b522ce6af8584a9c9259700b8916f06f85766;hpb=58aec3c59a53147c7d924c823f7405218fb5f555 diff --git a/blob.c b/blob.c index 2da7cac..10c1f49 100644 --- a/blob.c +++ b/blob.c @@ -134,7 +134,7 @@ blob_new(struct blob_buf *buf, int id, int payload) } struct blob_attr * -blob_put_raw(struct blob_buf *buf, const void *ptr, int len) +blob_put_raw(struct blob_buf *buf, const void *ptr, unsigned int len) { struct blob_attr *attr; @@ -148,7 +148,7 @@ blob_put_raw(struct blob_buf *buf, const void *ptr, int len) } struct blob_attr * -blob_put(struct blob_buf *buf, int id, const void *ptr, int len) +blob_put(struct blob_buf *buf, int id, const void *ptr, unsigned int len) { struct blob_attr *attr; @@ -186,7 +186,7 @@ static const int blob_type_minlen[BLOB_ATTR_LAST] = { }; bool -blob_check_type(const void *ptr, int len, int type) +blob_check_type(const void *ptr, unsigned int len, int type) { const char *data = ptr; @@ -236,7 +236,7 @@ blob_parse(struct blob_attr *attr, struct blob_attr **data, const struct blob_at if (info[id].maxlen && len > info[id].maxlen) continue; - if (info[id].validate && !info[id].validate(&info[id], attr)) + if (info[id].validate && !info[id].validate(&info[id], pos)) continue; }