1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

lws_ring: use __mtail instead of hardcoded tail

Changed harcoded member name "tail" into ___mtail in lws_ring_consume_and_update_oldest_tail macro.
This commit is contained in:
Piotr Nazimek 2020-01-22 14:18:33 +00:00 committed by Andy Green
parent d880fe2330
commit 1ead90bcd6

View file

@ -277,10 +277,10 @@ lws_ring_dump(struct lws_ring *ring, uint32_t *tail);
___oldest = *(___ptail); \
lws_start_foreach_llp(___type **, ___ppss, ___list_head) { \
___m = lws_ring_get_count_waiting_elements( \
___ring, &(*___ppss)->tail); \
___ring, &(*___ppss)->___mtail); \
if (___m >= ___n) { \
___n = ___m; \
___oldest = (*___ppss)->tail; \
___oldest = (*___ppss)->___mtail; \
} \
} lws_end_foreach_llp(___ppss, ___mlist); \
\