tventi: silence warnings in icache.c - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 0e430b25b21cb9e08ccb46c7c5202cd10c13e1dd
parent 1f441eaac47471899b15802f0382565b538d4db1
Author: Russ Cox 
Date:   Thu,  7 Aug 2008 11:17:06 -0400

venti: silence warnings in icache.c

Diffstat:
  M src/cmd/venti/srv/icache.c          |       8 ++++----

1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/cmd/venti/srv/icache.c b/src/cmd/venti/srv/icache.c
t@@ -131,7 +131,7 @@ popout(IEntry *ie)
 }
 
 static IEntry*
-poplast(IEntry *list)
+poplast(volatile IEntry *list)
 {
         if(list->prev == list)
                 return nil;
t@@ -139,10 +139,10 @@ poplast(IEntry *list)
 }
 
 static IEntry*
-pushfirst(IEntry *list, IEntry *ie)
+pushfirst(volatile IEntry *list, IEntry *ie)
 {
         popout(ie);
-        ie->prev = list;
+        ie->prev = (IEntry*)list;
         ie->next = list->next;
         ie->prev->next = ie;
         ie->next->prev = ie;
t@@ -311,7 +311,7 @@ fprint(2, "icache %,d bytes = %,d entries; %d scache\n", mem0, entries, scache);
 
         icache.clean.prev = icache.clean.next = &icache.clean;
         icache.dirty.prev = icache.dirty.next = &icache.dirty;
-        icache.free.prev = icache.free.next = &icache.free;
+        icache.free.prev = icache.free.next = (IEntry*)&icache.free;
         
         icache.hash = mkihash(entries);
         icache.nentries = entries;