Skip to content

Commit 5ad3d43

Browse files
committed
libdyld: use SLIST_REMOVE_HEAD
1 parent 27ea1d9 commit 5ad3d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdyld/dyld.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ dyld_clear(struct dyld *d)
13981398
struct mem_context *mctx = d->mctx;
13991399
struct dyld_object *obj;
14001400
while ((obj = SLIST_FIRST(&d->objs)) != NULL) {
1401-
SLIST_REMOVE(&d->objs, (struct dyld_object *)NULL, obj, q);
1401+
SLIST_REMOVE_HEAD(&d->objs, obj, q);
14021402
dyld_object_destroy(obj);
14031403
}
14041404
if (d->pie) {

0 commit comments

Comments
 (0)