aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/uthread/uthread_file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_file.c b/lib/libc_r/uthread/uthread_file.c
index 8f1afcda250b..04c652655e87 100644
--- a/lib/libc_r/uthread/uthread_file.c
+++ b/lib/libc_r/uthread/uthread_file.c
@@ -116,7 +116,7 @@ find_lock(int idx, FILE *fp)
p = &flh[idx].fl;
else {
/* Point to the first dynamic lock: */
- p = flh[idx].head.lh_first;
+ p = LIST_FIRST(&flh[idx].head);
/*
* Loop through the dynamic locks looking for the
@@ -124,7 +124,7 @@ find_lock(int idx, FILE *fp)
*/
while (p != NULL && (p->fp != fp || p->owner == NULL))
/* Not this file, try the next: */
- p = p->entry.le_next;
+ p = LIST_NEXT(p, entry);
}
return(p);
}
@@ -146,7 +146,7 @@ do_lock(int idx, FILE *fp)
}
else {
/* Point to the first dynamic lock: */
- p = flh[idx].head.lh_first;
+ p = LIST_FIRST(&flh[idx].head);
/*
* Loop through the dynamic locks looking for a
@@ -154,7 +154,7 @@ do_lock(int idx, FILE *fp)
*/
while (p != NULL && p->owner != NULL)
/* This one is used, try the next: */
- p = p->entry.le_next;
+ p = LIST_NEXT(p, entry);
}
/*