aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-08-07 11:17:06 -0400
committerRuss Cox <rsc@swtch.com>2008-08-07 11:17:06 -0400
commit0e430b25b21cb9e08ccb46c7c5202cd10c13e1dd (patch)
tree34b034c6e59570133979dd612335537b5a159864 /src/cmd/venti
parent1f441eaac47471899b15802f0382565b538d4db1 (diff)
downloadplan9port-0e430b25b21cb9e08ccb46c7c5202cd10c13e1dd.tar.gz
plan9port-0e430b25b21cb9e08ccb46c7c5202cd10c13e1dd.tar.bz2
plan9port-0e430b25b21cb9e08ccb46c7c5202cd10c13e1dd.zip
venti: silence warnings in icache.c
Diffstat (limited to 'src/cmd/venti')
-rw-r--r--src/cmd/venti/srv/icache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/venti/srv/icache.c b/src/cmd/venti/srv/icache.c
index 7a528b68..db2e7993 100644
--- a/src/cmd/venti/srv/icache.c
+++ b/src/cmd/venti/srv/icache.c
@@ -131,7 +131,7 @@ popout(IEntry *ie)
}
static IEntry*
-poplast(IEntry *list)
+poplast(volatile IEntry *list)
{
if(list->prev == list)
return nil;
@@ -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;
@@ -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;