Skip to content

Commit

Permalink
libdyld: use SLIST_REMOVE_HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Dec 26, 2024
1 parent 27ea1d9 commit 5ad3d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdyld/dyld.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ dyld_clear(struct dyld *d)
struct mem_context *mctx = d->mctx;
struct dyld_object *obj;
while ((obj = SLIST_FIRST(&d->objs)) != NULL) {
SLIST_REMOVE(&d->objs, (struct dyld_object *)NULL, obj, q);
SLIST_REMOVE_HEAD(&d->objs, obj, q);
dyld_object_destroy(obj);
}
if (d->pie) {
Expand Down

0 comments on commit 5ad3d43

Please sign in to comment.