Diff between c77bb848a9fb4e37e90109b0a97e68a3335a2734 and 32f2c108d11ad8893511a4e869885caafa28df78
Changed Files
| File | Additions | Deletions | Status |
| mesh/model.c | +7 | -1 | modified |
Full Patch
diff --git a/mesh/model.c b/mesh/model.c
index 17b58b4..690be29 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -111,7 +111,13 @@ static bool simple_match(const void *a, const void *b)
static bool has_binding(struct l_queue *bindings, uint16_t idx)
{
- return l_queue_find(bindings, simple_match, L_UINT_TO_PTR(idx)) != NULL;
+ const struct l_queue_entry *entry;
+
+ for (entry = l_queue_get_entries(bindings); entry; entry = entry->next)
+ if (L_PTR_TO_INT(entry->data) == idx)
+ return true;
+
+ return false;
}
static bool find_virt_by_label(const void *a, const void *b)