1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

lwip: use new mbox_unset() function

This commit is contained in:
Martine Lenders 2020-11-20 13:42:43 +01:00
parent 12194ad9e6
commit 6229fda7bd
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -101,13 +101,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);
}
}