git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbd7db9
)
fish.c: don't perform arithmetic on void* pointers
author
Jim Meyering
<meyering@redhat.com>
Fri, 21 Aug 2009 12:59:49 +0000
(14:59 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Fri, 21 Aug 2009 13:24:25 +0000
(15:24 +0200)
* fish/fish.c (xwrite): Use char*.
fish/fish.c
patch
|
blob
|
history
diff --git
a/fish/fish.c
b/fish/fish.c
index
fbac519
..
3acd450
100644
(file)
--- a/
fish/fish.c
+++ b/
fish/fish.c
@@
-1117,9
+1117,10
@@
add_history_line (const char *line)
}
int
-xwrite (int fd, const void *buf, size_t len)
+xwrite (int fd, const void *
v_
buf, size_t len)
{
int r;
+ const char *buf = v_buf;
while (len > 0) {
r = write (fd, buf, len);