aboutsummaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/write_retry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/write_retry.c b/lib/util/write_retry.c
index 637b5d2..0ef856c 100644
--- a/lib/util/write_retry.c
+++ b/lib/util/write_retry.c
@@ -4,7 +4,7 @@
#include "util.h"
-ssize_t write_retry(int fd, void *data, size_t size)
+ssize_t write_retry(int fd, const void *data, size_t size)
{
ssize_t ret, total = 0;
@@ -18,7 +18,7 @@ ssize_t write_retry(int fd, void *data, size_t size)
return -1;
}
- data = (char *)data + ret;
+ data = (const char *)data + ret;
size -= ret;
total += ret;
}