diff options
author | ewolfok <ewolfok@126.com> | 2014-07-08 17:43:58 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-26 05:50:50 +0400 |
commit | 22bbcfddd7b2061343b773c3180f318e71b8d6d7 (patch) | |
tree | e9d61f2ea22ec6a44717ee64b695277f9c88d73e /blob.h | |
parent | f3977836afc82ce32c203173bd393789e05a123e (diff) |
blob: improve out-of-memory handling
Signed-off-by: Chen Bin <ewolfok@126.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -191,7 +191,7 @@ extern void blob_set_raw_len(struct blob_attr *attr, unsigned int len); 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 void blob_buf_grow(struct blob_buf *buf, int required); +extern bool blob_buf_grow(struct blob_buf *buf, int required); extern struct blob_attr *blob_new(struct blob_buf *buf, int id, int payload); extern void *blob_nest_start(struct blob_buf *buf, int id); extern void blob_nest_end(struct blob_buf *buf, void *cookie); |