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:
parent
0c35ab32df
commit
31c11451ef
1 changed files with 2 additions and 2 deletions
|
@ -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); \
|
||||
\
|
||||
|
|
Loading…
Add table
Reference in a new issue