mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish.c: don't perform arithmetic on void* pointers
* fish/fish.c (xwrite): Use char*.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user