Skip to content

Commit

Permalink
lwip: use new mbox_unset() function
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Nov 20, 2020
1 parent d9bbc80 commit 22ec43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lwip/include/arch/sys_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ typedef struct {

static inline bool sys_mbox_valid(sys_mbox_t *mbox)
{
return (mbox != NULL) && (mbox->mbox.cib.mask != 0);
return (mbox != NULL) && (mbox_size(&mbox->mbox) != 0);
}

static inline void sys_mbox_set_invalid(sys_mbox_t *mbox)
{
if (mbox != NULL) {
mbox->mbox.cib.mask = 0;
mbox_unset(&mbox->mbox);
}
}

Expand Down

0 comments on commit 22ec43a

Please sign in to comment.