Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-23 21:55:41 +0300
committerFelix Fietkau <nbd@openwrt.org>2011-01-23 21:55:41 +0300
commit71f0be5e11b773ed4b09d1cc46099cdafacbd56a (patch)
tree8390327e91131228fbe02d1708032d9de502fa72 /blob.h
parent63cea8dcb79be7bf2bd32b7c05ac289a473192a5 (diff)
add blobmsg validation function
Diffstat (limited to 'blob.h')
-rw-r--r--blob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/blob.h b/blob.h
index 401a355..c9364e9 100644
--- 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);
}