diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fs/tar.c | 4 | ||||
-rw-r--r-- | kernel/include/comus/fs.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/kernel/fs/tar.c b/kernel/fs/tar.c index 061dd0c..8beebc6 100644 --- a/kernel/fs/tar.c +++ b/kernel/fs/tar.c @@ -113,7 +113,7 @@ static int tar_locate(struct file_system *fs, const char *path, return 1; } -int tar_read(struct file *in, char *buf, size_t len) +int tar_read(struct file *in, void *buf, size_t len) { struct tar_file *file = (struct tar_file *)in; size_t max_bytes = file->len - file->offset; @@ -135,7 +135,7 @@ int tar_read(struct file *in, char *buf, size_t len) return bytes; } -int tar_write(struct file *in, const char *buf, size_t len) +int tar_write(struct file *in, const void *buf, size_t len) { (void)in; (void)buf; diff --git a/kernel/include/comus/fs.h b/kernel/include/comus/fs.h index 044330b..b1d0e80 100644 --- a/kernel/include/comus/fs.h +++ b/kernel/include/comus/fs.h @@ -28,7 +28,7 @@ struct disk { /// internal disk device union { struct { - char *start; + uint8_t *start; size_t len; } rd; ide_device_t ide; @@ -137,9 +137,9 @@ struct file { /// file type enum file_type f_type; /// read from the file - int (*read)(struct file *file, char *buffer, size_t nbytes); + int (*read)(struct file *file, void *buffer, size_t nbytes); /// write into the file - int (*write)(struct file *file, const char *buffer, size_t nbytes); + int (*write)(struct file *file, const void *buffer, size_t nbytes); /// seeks the file int (*seek)(struct file *file, long int offset, int whence); /// get directory entry at index |