summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-07 10:04:57 +0200
committerMichael Adam <obnox@samba.org>2009-08-07 10:04:57 +0200
commitb450ad76ff1debfe2aa709e3a784f92cb382c502 (patch)
treeff0793f93416979c072987625f8d619676b888cd
parent2fff622819741a0a7e8fd60aabd68f9580af317e (diff)
safe_write: fix unsigned vs. signed comparison
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 22dfadf..60ec9e8 100644
--- a/src/network.c
+++ b/src/network.c
@@ -56,7 +56,7 @@ safe_write (int fd, const char *buffer, size_t count)
return -errno;
}
- if (len == bytestosend)
+ if ((size_t)len == bytestosend)
break;
buffer += len;