From 3d33f178ccd7b0602b20c8fb37d7e57beed22e89 Mon Sep 17 00:00:00 2001 From: Markus Pargmann Date: Wed, 6 Jul 2016 10:19:42 +0200 Subject: libfile: Change write_full to be have const buf write() uses a const pointer so write_full should do the same. Signed-off-by: Markus Pargmann Signed-off-by: Sascha Hauer --- include/libfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libfile.h b/include/libfile.h index de4f42dbd1..dd0b00f988 100644 --- a/include/libfile.h +++ b/include/libfile.h @@ -1,7 +1,7 @@ #ifndef __LIBFILE_H #define __LIBFILE_H -int write_full(int fd, void *buf, size_t size); +int write_full(int fd, const void *buf, size_t size); int read_full(int fd, void *buf, size_t size); char *read_file_line(const char *fmt, ...); -- cgit v1.2.3