summaryrefslogtreecommitdiff
path: root/kernel/fs/ext2.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-10 00:18:47 +0100
committerAnton Kling <anton@kling.gg>2023-11-10 00:18:47 +0100
commita098a603d0bad5dffa08fe76d03f7d9521757e78 (patch)
treeecc0d3a0f3c6e6b3e65d4b326762e92a6bcbbda3 /kernel/fs/ext2.h
parent240e715aed9ea8b1a6d3b89c84cf9af3c3436e6f (diff)
Kernel/fs: Dynamically allocate based upon file size.
This commit also changes "unsigned char" to "char". A slight step in the direction of making my coding style less bipolar.
Diffstat (limited to 'kernel/fs/ext2.h')
-rw-r--r--kernel/fs/ext2.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/fs/ext2.h b/kernel/fs/ext2.h
index 3a2f800..4b4dec0 100644
--- a/kernel/fs/ext2.h
+++ b/kernel/fs/ext2.h
@@ -131,10 +131,9 @@ typedef struct DirectoryEntryHeader {
int ext2_create_file(const char *path, int mode);
vfs_inode_t *ext2_mount(void);
void parse_superblock(void);
-size_t ext2_read_file_offset(const char *file, unsigned char *data,
- uint64_t size, uint64_t offset,
- uint64_t *file_size);
-size_t ext2_read_file(const char *file, unsigned char *data, size_t size,
+size_t ext2_read_file_offset(const char *file, char *data, uint64_t size,
+ uint64_t offset, uint64_t *file_size);
+size_t ext2_read_file(const char *file, char *data, size_t size,
uint64_t *file_size);
int ext2_create_directory(const char *path, int mode);
#endif