X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blob.c;h=10c1f49e4aa1330df04a326d7033a70493ea22e9;hp=9b721d14ec645bc0fa2244fda369ee0aba83a4cb;hb=fd5b522ce6af8584a9c9259700b8916f06f85766;hpb=ef918710c02166c289442bd0a8b548da802dd36b diff --git a/blob.c b/blob.c index 9b721d1..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;