From 947e8eb838dc06e6e7efbd40b7469ee825781457 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 7 Aug 2009 10:07:07 +0200 Subject: write_message(): fix signed/unsigned comparison warning Michael --- src/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index d4d26c8..9837572 100644 --- a/src/network.c +++ b/src/network.c @@ -108,7 +108,7 @@ write_message (int fd, const char *fmt, ...) va_end (ap); /* If that worked, break out so we can send the buffer */ - if (n > -1 && n < size) + if (n > -1 && (size_t)n < size) break; /* Else, try again with more space */ -- cgit v1.2.3