From e9bd7ef945116242012320315b43ebab32502c64 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 29 Apr 1996 20:05:15 +0000 Subject: (cacheq_make_mru, cacheq_make_lru): Type of LRU & MRU fields is now `void *'. --- libshouldbeinlibc/cacheq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libshouldbeinlibc/cacheq.c b/libshouldbeinlibc/cacheq.c index 8275dbe7..c8b0c989 100644 --- a/libshouldbeinlibc/cacheq.c +++ b/libshouldbeinlibc/cacheq.c @@ -42,7 +42,7 @@ cacheq_make_mru (struct cacheq *cq, void *entry) /* Now make it MRU. */ h->next = cq->mru; h->prev = 0; - cq->mru->prev = h; + ((struct cacheq_hdr *)cq->mru)->prev = h; cq->mru = h; } } @@ -66,7 +66,7 @@ cacheq_make_lru (struct cacheq *cq, void *entry) /* Now make it LRU. */ h->prev = cq->lru; h->next = 0; - cq->lru->next = h; + ((struct cacheq_hdr *)cq->lru)->next = h; cq->lru = h; } } -- cgit v1.2.3