X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/0e1309c02f0703c050df09b71346dab60fc6df87..eb1d71eb06e977f9ea61f6f43e5ce65342faf1cc:/lunaix-os/kernel/block.c diff --git a/lunaix-os/kernel/block.c b/lunaix-os/kernel/block.c index 97e9bd6..b855910 100644 --- a/lunaix-os/kernel/block.c +++ b/lunaix-os/kernel/block.c @@ -39,10 +39,7 @@ block_init() } int -__block_read(struct device* dev, - void* buf, - unsigned int offset, - unsigned int len) +__block_read(struct device* dev, void* buf, size_t offset, size_t len) { int errno; struct block_dev* bdev = (struct block_dev*)dev->underlay; @@ -72,10 +69,7 @@ error: } int -__block_write(struct device* dev, - void* buf, - unsigned int offset, - unsigned int len) +__block_write(struct device* dev, void* buf, size_t offset, size_t len) { int errno; struct block_dev* bdev = (struct block_dev*)dev->underlay;