aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-12-08 13:26:05 -0600
committerRob Landley <rob@landley.net>2013-12-08 13:26:05 -0600
commitdbbd3d6e485d6a063dcd2f163313b52ce95b42f5 (patch)
tree4601a82e16aee5fc044dad101e3f854c25780a79 /lib
parent7acbf5e49d0041ca006305c563be2f50f85f6ec7 (diff)
downloadtoybox-dbbd3d6e485d6a063dcd2f163313b52ce95b42f5.tar.gz
Doing math on void pointers isn't portable, reported by Nathan McSween.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 14de91df..16c36b02 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -67,7 +67,7 @@ ssize_t readall(int fd, void *buf, size_t len)
size_t count = 0;
while (count<len) {
- int i = read(fd, buf+count, len-count);
+ int i = read(fd, (char *)buf+count, len-count);
if (!i) break;
if (i<0) return i;
count += i;