diff options
author | Rob Landley <rob@landley.net> | 2013-12-08 13:26:05 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-12-08 13:26:05 -0600 |
commit | dbbd3d6e485d6a063dcd2f163313b52ce95b42f5 (patch) | |
tree | 4601a82e16aee5fc044dad101e3f854c25780a79 /lib | |
parent | 7acbf5e49d0041ca006305c563be2f50f85f6ec7 (diff) | |
download | toybox-dbbd3d6e485d6a063dcd2f163313b52ce95b42f5.tar.gz toybox-dbbd3d6e485d6a063dcd2f163313b52ce95b42f5.tar.bz2 toybox-dbbd3d6e485d6a063dcd2f163313b52ce95b42f5.zip |
Doing math on void pointers isn't portable, reported by Nathan McSween.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |