static int kblockposix_store(struct KBlock *b, block_idx_t index)
{
- KBlockPosix *f = kblockposix_CAST(b);
+ KBlockPosix *f = KBLOCKPOSIX_CAST(b);
fseek(f->fp, index * b->blk_size, SEEK_SET);
return (fwrite(f->b.priv.buf, 1, b->blk_size, f->fp) == b->blk_size) ? 0 : EOF;
}
}
-static int kblockposix_claererr(struct KBlock *b)
+static void kblockposix_claererr(struct KBlock *b)
{
KBlockPosix *f = KBLOCKPOSIX_CAST(b);
clearerr(f->fp);
- return 0;
}