summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/all-io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/all-io.h b/include/all-io.h
index 0623692e1..dd4556fcb 100644
--- a/include/all-io.h
+++ b/include/all-io.h
@@ -25,7 +25,7 @@ static inline int write_all(int fd, const void *buf, size_t count)
if (tmp > 0) {
count -= tmp;
if (count)
- buf = (void *) ((char *) buf + tmp);
+ buf = (const void *) ((const char *) buf + tmp);
} else if (errno != EINTR && errno != EAGAIN)
return -1;
if (errno == EAGAIN) /* Try later, *sigh* */
@@ -45,7 +45,7 @@ static inline int fwrite_all(const void *ptr, size_t size,
if (tmp > 0) {
nmemb -= tmp;
if (nmemb)
- ptr = (void *) ((char *) ptr + (tmp * size));
+ ptr = (const void *) ((const char *) ptr + (tmp * size));
} else if (errno != EINTR && errno != EAGAIN)
return -1;
if (errno == EAGAIN) /* Try later, *sigh* */