From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross --- src/libdiskfs/cache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libdiskfs/cache.c') diff --git a/src/libdiskfs/cache.c b/src/libdiskfs/cache.c index 7b06fa4f..2888ae83 100644 --- a/src/libdiskfs/cache.c +++ b/src/libdiskfs/cache.c @@ -3,7 +3,7 @@ #include /* - * Disk cache. Caches by offset, so higher levels have + * Disk cache. Caches by offset, so higher levels have * to deal with alignment issues (if we get asked for the * blocks at offsets 0 and 1, we'll do two reads). */ @@ -43,7 +43,7 @@ addtohash(DiskCache *d, DiskCacheBlock *b, u64int offset) if(b->offset != ~(u64int)0){ fprint(2, "bad offset in addtohash\n"); - return; + return; } b->offset = offset; h = offset % d->nhash; @@ -227,8 +227,8 @@ diskcacheread(Disk *dd, u32int len, u64int offset) return b; } -/* - * It's okay to remove these from the hash table. +/* + * It's okay to remove these from the hash table. * Either the block is in use by someone or it is on * the lru list. If it's in use it will get put on the lru * list once the refs go away. @@ -264,7 +264,7 @@ diskcacheclose(Disk *dd) blockput(b->subblock); free(d); } - + /* needn't be fast */ static int isprime(int n) -- cgit v1.2.3