X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fguestfsd.c;h=ad3ce15ec32b8218e0f0b430de87014b25337095;hb=9dd53bcb10283295d7fb5f0a3469be2984d99926;hp=fad49fb64afed997e18284820e6f4b3ff2158416;hpb=adf20c0c4d9f488d55254f54a79079b9cacbde8d;p=libguestfs.git diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index fad49fb..ad3ce15 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -273,9 +273,10 @@ sysroot_path (const char *path) } int -xwrite (int sock, const void *buf, size_t len) +xwrite (int sock, const void *v_buf, size_t len) { int r; + const char *buf = v_buf; while (len > 0) { r = write (sock, buf, len); @@ -291,9 +292,10 @@ xwrite (int sock, const void *buf, size_t len) } int -xread (int sock, void *buf, size_t len) +xread (int sock, void *v_buf, size_t len) { int r; + char *buf = v_buf; while (len > 0) { r = read (sock, buf, len);