diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-31 10:28:01 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-12-31 10:28:01 +0000 |
commit | f42abb1fefe8b7688980fd47c969dd3b19cc1799 (patch) | |
tree | 595379b06c895ccd0be51a0708a8622dcedbf0a1 /lib/libc_r | |
parent | 49851cc7066a21a26eab8279e84843fed2dc8289 (diff) |
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.
Notes
Notes:
svn path=/head/; revision=70537
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_file.c | 8 |
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); } /* |