diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-01-23 21:55:41 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-01-23 21:55:41 +0300 |
commit | 71f0be5e11b773ed4b09d1cc46099cdafacbd56a (patch) | |
tree | 8390327e91131228fbe02d1708032d9de502fa72 /blob.h | |
parent | 63cea8dcb79be7bf2bd32b7c05ac289a473192a5 (diff) |
add blobmsg validation function
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |