From 9e052f53708c98092b79aa8556fd977c05cd0136 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 18 Mar 2022 15:49:24 +0100 Subject: scripts: constify write_full input buffer Buffer written is read-only, so align prototype with . Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220318144924.497993-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- scripts/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/common.h') 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 */ -- cgit v1.2.3