summaryrefslogtreecommitdiffstats
path: root/lib/libfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfile.c')
-rw-r--r--lib/libfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfile.c b/lib/libfile.c
index 62e9b8ed22..cba2f02a23 100644
--- a/lib/libfile.c
+++ b/lib/libfile.c
@@ -28,7 +28,7 @@
* Like write, but guarantees to write the full buffer out, else
* it returns with an error.
*/
-int write_full(int fd, void *buf, size_t size)
+int write_full(int fd, const void *buf, size_t size)
{
size_t insize = size;
int now;