X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=blob.h;h=c9364e93902a63a868793283c367757cb1b89029;hp=401a355d128458513133337cac1e3b8017670180;hb=71f0be5e11b773ed4b09d1cc46099cdafacbd56a;hpb=63cea8dcb79be7bf2bd32b7c05ac289a473192a5 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); }