queue.h - Revert recent changes.
Preserve original queue.h semantics, as distasteful as they may be!
@@ -158,11 +158,10 @@ struct { \
} \
else { \
struct type *curelm = SLIST_FIRST((head)); \
- while (SLIST_NEXT(curelm, field) && \
- SLIST_NEXT(curelm, field) != (elm)) { \
+ while (SLIST_NEXT(curelm, field) != (elm)) \
curelm = SLIST_NEXT(curelm, field); \
- } \
- SLIST_NEXT(curelm, field) = SLIST_NEXT(elm, field); \
+ SLIST_NEXT(curelm, field) = \
+ SLIST_NEXT(SLIST_NEXT(curelm, field), field); \
} \
} while (0)
