summaryrefslogtreecommitdiff
path: root/usr.bin/nc/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/nc/atomicio.c')
-rw-r--r--usr.bin/nc/atomicio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/nc/atomicio.c b/usr.bin/nc/atomicio.c
index 9e732904adc..151dde0cf66 100644
--- a/usr.bin/nc/atomicio.c
+++ b/usr.bin/nc/atomicio.c
@@ -40,7 +40,7 @@ atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
char *s = _s;
ssize_t res, pos = 0;
- while (n > pos) {
+ while (n > (size_t)pos) {
res = (f) (fd, s + pos, n - pos);
switch (res) {
case -1: