aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs/cache.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libdiskfs/cache.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libdiskfs/cache.c')
-rw-r--r--src/libdiskfs/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libdiskfs/cache.c b/src/libdiskfs/cache.c
index cdef865e..f1af6f1b 100644
--- a/src/libdiskfs/cache.c
+++ b/src/libdiskfs/cache.c
@@ -145,7 +145,7 @@ diskcachereadbig(DiskCache *d, u64int offset)
lock(&d->lk);
dcb = findblock(d, offset);
if(dcb){
-//fprint(2, "found %llud in cache %p\n", (uvlong)offset, dcb);
+/*fprint(2, "found %llud in cache %p\n", (uvlong)offset, dcb);*/
if(dcb->ref++ == 0)
delfromlru(d, dcb);
unlock(&d->lk);
@@ -165,7 +165,7 @@ diskcachereadbig(DiskCache *d, u64int offset)
putlru(d, dcb);
dcb = nil;
}else{
-//fprint(2, "read %llud from disk %p\n", (uvlong)offset, dcb);
+/*fprint(2, "read %llud from disk %p\n", (uvlong)offset, dcb); */
dcb->subblock = b;
dcb->ref++;
addtohash(d, dcb, offset);
@@ -223,7 +223,7 @@ diskcacheread(Disk *dd, u32int len, u64int offset)
len = dlen-frag;
}
b->len = len;
-//fprint(2, "offset %llud at pointer %p %lux\n", (uvlong)offset, b->data, *(ulong*)(b->data+4));
+/*fprint(2, "offset %llud at pointer %p %lux\n", (uvlong)offset, b->data, *(ulong*)(b->data+4)); */
return b;
}