diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-21 14:59:49 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-21 15:24:25 +0200 |
commit | 78e2a30b90621e417b8677868092bc6426d7b097 (patch) | |
tree | 4470f12d56ddf2757b91e32ef00e714fe906c00d /fish/fish.c | |
parent | fbd7db94066d45df7eb980234fee8603c427daa9 (diff) | |
download | libguestfs-78e2a30b90621e417b8677868092bc6426d7b097.tar.gz libguestfs-78e2a30b90621e417b8677868092bc6426d7b097.tar.xz libguestfs-78e2a30b90621e417b8677868092bc6426d7b097.zip |
fish.c: don't perform arithmetic on void* pointers
* fish/fish.c (xwrite): Use char*.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c index fbac5197..3acd4504 100644 --- 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); |