From 3780d05b9e2f699ea083a7a88c0daa5527783a79 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 5 Mar 2016 17:20:57 +0000 Subject: [PATCH] mbag_add_dword returns pointer to added element. FossilOrigin-Name: 4f5d7ae392f07339da35544c49635895143310635c29671cc2df400f46b93b7f --- src/cw/mbag.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cw/mbag.h b/src/cw/mbag.h index 5ec4a665..e7fc3e6e 100644 --- a/src/cw/mbag.h +++ b/src/cw/mbag.h @@ -174,14 +174,14 @@ static inline int mbag_set_word(mbag_t s, const char *id, uint16_t word) -static inline int mbag_set_dword(mbag_t s, const char *id, uint32_t dword) +static inline struct mbag_item * mbag_set_dword(mbag_t s, const char *id, uint32_t dword) { struct mbag_item *i = mbag_item_create(s, id); if (!i) - return 0; + return NULL; i->dword = dword; i->type = &mbag_type_dword; - return 1; + return i; }