diff options
author | Michael Adam <obnox@samba.org> | 2009-08-07 10:07:07 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-07 10:07:07 +0200 |
commit | 947e8eb838dc06e6e7efbd40b7469ee825781457 (patch) | |
tree | 7c621024f4f2069fb36c439813890dfe227e3094 /src | |
parent | c535939a9c0c779f41cbe6d7eec6f94f19ff41de (diff) |
write_message(): fix signed/unsigned comparison warning
Michael
Diffstat (limited to 'src')
-rw-r--r-- | src/network.c | 2 |
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 */ |