projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blobmsg: make blobmsg_len and blobmsg_data_len return unsigned value
[project/libubox.git]
/
blobmsg.c
diff --git
a/blobmsg.c
b/blobmsg.c
index 97e0c20575ff17e5bc549113964fd7bef1df3d0b..1a8b783e9ba92b35aff2b1a3ad6912a903b704e1 100644
(file)
--- a/
blobmsg.c
+++ b/
blobmsg.c
@@
-35,7
+35,8
@@
bool blobmsg_check_attr(const struct blob_attr *attr, bool name)
{
const struct blobmsg_hdr *hdr;
const char *data;
- int id, len;
+ size_t len;
+ int id;
if (blob_len(attr) < sizeof(struct blobmsg_hdr))
return false;