diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-03-18 15:49:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-03-28 10:55:34 +0200 |
commit | 9e052f53708c98092b79aa8556fd977c05cd0136 (patch) | |
tree | 9922a587e9f5202da2d276441585c170002e94cf /scripts/common.h | |
parent | 710f1b040eed49e65a180acaf74834b32a7a91ec (diff) | |
download | barebox-9e052f53708c98092b79aa8556fd977c05cd0136.tar.gz barebox-9e052f53708c98092b79aa8556fd977c05cd0136.tar.xz |
scripts: constify write_full input buffer
Buffer written is read-only, so align prototype with <libfile.h>.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220318144924.497993-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/common.h')
-rw-r--r-- | scripts/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/common.h b/scripts/common.h index 820108c52c..399729c338 100644 --- a/scripts/common.h +++ b/scripts/common.h @@ -5,6 +5,6 @@ int read_file_2(const char *filename, size_t *size, void **outbuf, size_t max_si void *read_file(const char *filename, size_t *size); int write_file(const char *filename, const void *buf, size_t size); int read_full(int fd, void *buf, size_t size); -int write_full(int fd, void *buf, size_t size); +int write_full(int fd, const void *buf, size_t size); #endif /* __COMMON_H */ |