projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add blobmsg validation function
[project/libubox.git]
/
blob.h
diff --git
a/blob.h
b/blob.h
index
401a355
..
c9364e9
100644
(file)
--- a/
blob.h
+++ b/
blob.h
@@
-141,7
+141,7
@@
blob_id(struct blob_attr *attr)
* blob_len: returns the length of the attribute's payload
*/
static inline unsigned int
-blob_len(struct blob_attr *attr)
+blob_len(
const
struct blob_attr *attr)
{
return (be32_to_cpu(attr->id_len) & BLOB_ATTR_LEN_MASK) - sizeof(struct blob_attr);
}