summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/atomicio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/nc/atomicio.c')
-rw-r--r--src/usr.bin/nc/atomicio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/nc/atomicio.c b/src/usr.bin/nc/atomicio.c
index dfd66328a2..c3f26846df 100644
--- a/src/usr.bin/nc/atomicio.c
+++ b/src/usr.bin/nc/atomicio.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atomicio.c,v 1.7 2005/05/26 01:01:08 avsm Exp $ */ 1/* $OpenBSD: atomicio.c,v 1.8 2006/02/11 19:31:18 otto Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005 Anil Madhavapeddy. All rights served. 4 * Copyright (c) 2005 Anil Madhavapeddy. All rights served.
@@ -57,7 +57,7 @@ atomicio(f, fd, _s, n)
57 errno = EPIPE; 57 errno = EPIPE;
58 return pos; 58 return pos;
59 default: 59 default:
60 pos += (u_int)res; 60 pos += (size_t)res;
61 } 61 }
62 } 62 }
63 return pos; 63 return pos;