diff options
author | rsc <devnull@localhost> | 2005-07-13 03:57:57 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-13 03:57:57 +0000 |
commit | e87f5d7cecb8226b950a492fa02d40f7070af972 (patch) | |
tree | 406bbce1544c8e97dd90c40d4f1b190b13e56959 /src/libventi | |
parent | 8f5c6c7d795c78e46bdc8498d545253d91cdf769 (diff) | |
download | plan9port-e87f5d7cecb8226b950a492fa02d40f7070af972.tar.gz plan9port-e87f5d7cecb8226b950a492fa02d40f7070af972.tar.bz2 plan9port-e87f5d7cecb8226b950a492fa02d40f7070af972.zip |
no mode
Diffstat (limited to 'src/libventi')
-rw-r--r-- | src/libventi/cache.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libventi/cache.c b/src/libventi/cache.c index 2ce96ee9..e8241aa2 100644 --- a/src/libventi/cache.c +++ b/src/libventi/cache.c @@ -38,14 +38,13 @@ struct VtCache VtBlock *block; /* all allocated blocks */ int nblock; uchar *mem; /* memory for all blocks and data */ - int mode; int (*write)(VtConn*, uchar[VtScoreSize], uint, uchar*, int); }; static void cachecheck(VtCache*); VtCache* -vtcachealloc(VtConn *z, int blocksize, ulong nblock, int mode) +vtcachealloc(VtConn *z, int blocksize, ulong nblock) { uchar *p; VtCache *c; @@ -62,7 +61,6 @@ vtcachealloc(VtConn *z, int blocksize, ulong nblock, int mode) c->heap = vtmallocz(nblock*sizeof(VtBlock*)); c->block = vtmallocz(nblock*sizeof(VtBlock)); c->mem = vtmallocz(nblock*c->blocksize); - c->mode = mode; c->write = vtwrite; p = c->mem; @@ -572,10 +570,3 @@ vtglobaltolocal(uchar score[VtScoreSize]) return (score[16]<<24)|(score[17]<<16)|(score[18]<<8)|score[19]; } -int -vtblockdirty(VtBlock *b) -{ - USED(b); - return 0; -} - |