OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acbf5e
)
Doing math on void pointers isn't portable, reported by Nathan McSween.
author
Rob Landley
<rob@landley.net>
Sun, 8 Dec 2013 19:26:05 +0000
(13:26 -0600)
committer
Rob Landley
<rob@landley.net>
Sun, 8 Dec 2013 19:26:05 +0000
(13:26 -0600)
lib/lib.c
patch
|
blob
|
history
diff --git
a/lib/lib.c
b/lib/lib.c
index
14de91d
..
16c36b0
100644
(file)
--- 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;