X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fproto.c;h=76dce9876bb0e89dfa4f8d70f1af224c2c6494eb;hb=d73a4f097f96e7246718671b0a85cb94f0d3a88f;hp=62d8da5ae8f010a4ffa022b0f9dc4eed6a5409db;hpb=316bbc36662c0df6b3d0ad48790e0b551a291df6;p=libguestfs.git diff --git a/daemon/proto.c b/daemon/proto.c index 62d8da5..76dce98 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; @@ -192,7 +192,7 @@ send_error (const char *msg) exit (1); } - err.error = (char *) msg; + err.error_message = (char *) msg; if (!xdr_guestfs_message_error (&xdr, &err)) { fprintf (stderr, "guestfsd: failed to encode error message body\n"); @@ -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); }