summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-07 10:07:07 +0200
committerMichael Adam <obnox@samba.org>2009-08-07 10:07:07 +0200
commit947e8eb838dc06e6e7efbd40b7469ee825781457 (patch)
tree7c621024f4f2069fb36c439813890dfe227e3094
parentc535939a9c0c779f41cbe6d7eec6f94f19ff41de (diff)
write_message(): fix signed/unsigned comparison warning
Michael
-rw-r--r--src/network.c2
1 files changed, 1 insertions, 1 deletions
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 */