X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fproto.c;h=42bc6eaa8b5aa9c5dd11105ea46441e90e25d57f;hb=92804dec7c4982d2039f81586bc4a5cacb46217b;hp=62d8da5ae8f010a4ffa022b0f9dc4eed6a5409db;hpb=316bbc36662c0df6b3d0ad48790e0b551a291df6;p=libguestfs.git diff --git a/daemon/proto.c b/daemon/proto.c index 62d8da5..42bc6ea 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -35,7 +35,7 @@ /* XXX We should make this configurable from /proc/cmdline so that the * verbose setting of the guestfs_h can be inherited here. */ -#define DEBUG 1 +#define DEBUG 0 /* The message currently being processed. */ int proc_nr; @@ -206,8 +206,8 @@ send_error (const char *msg) xdr_uint32_t (&xdr, &len); xdr_destroy (&xdr); - xwrite (sock, lenbuf, 4); - xwrite (sock, buf, len); + (void) xwrite (sock, lenbuf, 4); + (void) xwrite (sock, buf, len); } void @@ -247,6 +247,6 @@ reply (xdrproc_t xdrp, char *ret) xdr_uint32_t (&xdr, &len); xdr_destroy (&xdr); - xwrite (sock, lenbuf, 4); - xwrite (sock, buf, len); + (void) xwrite (sock, lenbuf, 4); + (void) xwrite (sock, buf, len); }