From f42abb1fefe8b7688980fd47c969dd3b19cc1799 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 31 Dec 2000 10:28:01 +0000 Subject: Use macro API to Submitted by: "Peter Avalos" Reviewed by: /sbin/md5 [*] [*] This line appears courtesy of Mr. Warner Losch, all rights reversed. --- lib/libc_r/uthread/uthread_file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc_r/uthread/uthread_file.c') 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); } /* -- cgit v1.2.3