diff options
author | Jean-Jacques Hiblot | 2019-02-13 12:15:24 +0100 |
---|---|---|
committer | Tom Rini | 2019-04-09 15:34:15 -0400 |
commit | b000180b0f467851525aae3d0dfb8ab3a9dbcf8f (patch) | |
tree | 8a2b6570dcf3c37f581346ae8366d32fe91d64a1 /include/ext4fs.h | |
parent | 290100583dc70185e76ddaa00c1a50abd162a5ad (diff) |
fs: ext4: constify the buffer passed to write functions
There is no need to modify the buffer passed to ext4fs_write_file().
The memset() call is not required here and was likely copied from the
equivalent part of the ext4fs_read_file() function where we do need it.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/ext4fs.h')
-rw-r--r-- | include/ext4fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ext4fs.h b/include/ext4fs.h index 4b5de6e7b63..7d48b2bc465 100644 --- a/include/ext4fs.h +++ b/include/ext4fs.h @@ -134,7 +134,7 @@ extern int gindex; int ext4fs_init(void); void ext4fs_deinit(void); int ext4fs_filename_unlink(char *filename); -int ext4fs_write(const char *fname, unsigned char *buffer, +int ext4fs_write(const char *fname, const char *buffer, unsigned long sizebytes); int ext4_write_file(const char *filename, void *buf, loff_t offset, loff_t len, loff_t *actwrite); |