1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +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:15:47 +00:00 committed by Andy Green
parent 0c35ab32df
commit 31c11451ef

View file

@ -278,10 +278,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); \
\