From 70a5fad38f2f159ed68c1a271f8b1fa560700c0e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 2 May 2012 11:44:50 -0600 Subject: [PATCH] size_t != int --- dispatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dispatch.c b/dispatch.c index 37e5a34..1eb2885 100644 --- a/dispatch.c +++ b/dispatch.c @@ -48,7 +48,7 @@ dispatch(const char *buf, char text[512]; if (buflen > sizeof(text)) { - fprintf(stderr, "Ignoring message: too long (%d bytes)\n", buflen); + fprintf(stderr, "Ignoring message: too long (%u bytes)\n", (unsigned int)buflen); return; } memcpy(text, buf, buflen-1); /* omit newline */ @@ -223,8 +223,8 @@ handle_subproc(struct subproc *s) /* Recycle this subproc unless something was read */ if (0 >= len) { if (s->buflen) { - fprintf(stderr, "warning: discarding %d characters from subprocess buffer\n", - s->buflen); + fprintf(stderr, "warning: discarding %u characters from subprocess buffer\n", + (unsigned int)s->buflen); } close(s->fd); s->fd = 0;