summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-31 10:28:01 +0000
committerphk <phk@FreeBSD.org>2000-12-31 10:28:01 +0000
commit7e33fb5b20d41ec86b1694073755cf5b174ba4d2 (patch)
tree5cc0487c375d5b34e740df5419a5ce44e1065d48 /lib
parent5de479435ac7f4124fce758194096f1de151aea4 (diff)
downloadFreeBSD-src-7e33fb5b20d41ec86b1694073755cf5b174ba4d2.zip
FreeBSD-src-7e33fb5b20d41ec86b1694073755cf5b174ba4d2.tar.gz
Use macro API to <sys/queue.h>
Submitted by: "Peter Avalos" <pavalos@theshell.com> Reviewed by: /sbin/md5 [*] [*] This line appears courtesy of Mr. Warner Losch, all rights reversed.
Diffstat (limited to 'lib')
-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 8f1afcd..04c6526 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);
}
/*
OpenPOWER on IntegriCloud