aboutsummaryrefslogtreecommitdiff
path: root/include/ext4fs.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot2019-02-13 12:15:24 +0100
committerTom Rini2019-04-09 15:34:15 -0400
commitb000180b0f467851525aae3d0dfb8ab3a9dbcf8f (patch)
tree8a2b6570dcf3c37f581346ae8366d32fe91d64a1 /include/ext4fs.h
parent290100583dc70185e76ddaa00c1a50abd162a5ad (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.h2
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);