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-09-05 08:25:51 +0400
committerFelix Fietkau <nbd@openwrt.org>2011-09-05 08:25:51 +0400
commit34a6d05f9a84d0c6e07e12a976245a7d611d8e22 (patch)
tree36803abc2c10299e2ddaabd63438c40265e812f1 /blob.h
parentb1c320132e5adac3c3ba5545c66123b0618f8cd0 (diff)
blob_attr_equal: un-inline, add pointer checks
Diffstat (limited to 'blob.h')
-rw-r--r--blob.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/blob.h b/blob.h
index 80ad7d0..10adde8 100644
--- a/blob.h
+++ b/blob.h
@@ -213,15 +213,7 @@ blob_next(const struct blob_attr *attr)
return (struct blob_attr *) ((char *) attr + blob_pad_len(attr));
}
-static inline bool
-blob_attr_equal(const struct blob_attr *a1, const struct blob_attr *a2)
-{
- if (blob_pad_len(a1) != blob_pad_len(a2))
- return false;
-
- return !memcmp(a1, a2, blob_pad_len(a1));
-}
-
+extern bool blob_attr_equal(const struct blob_attr *a1, const struct blob_attr *a2);
extern int blob_buf_init(struct blob_buf *buf, int id);
extern void blob_buf_free(struct blob_buf *buf);
extern struct blob_attr *blob_new(struct blob_buf *buf, int id, int payload);