#include <unistd.h>
#include <errno.h>
#include <ctype.h>
+#include <sys/param.h> /* defines MIN */
#include <rpc/types.h>
#include <rpc/xdr.h>
/* 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;
#if DEBUG
int i, j;
-#define MIN(a,b) ((a)<(b)?(a):(b))
-
for (i = 0; i < len; i += 16) {
printf ("%04x: ", i);
for (j = i; j < MIN (i+16, len); ++j)
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
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);
}