summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/atomicio.c
diff options
context:
space:
mode:
authorotto <>2006-02-11 19:31:18 +0000
committerotto <>2006-02-11 19:31:18 +0000
commit4a281bbfac9305cf627db56e5f94897f6877f189 (patch)
treec8660376e0a8d730b3d4f7d2888138b8209faf11 /src/usr.bin/nc/atomicio.c
parentc5ab6afac874388050ff617dc754f0917bab54ec (diff)
downloadopenbsd-4a281bbfac9305cf627db56e5f94897f6877f189.tar.gz
openbsd-4a281bbfac9305cf627db56e5f94897f6877f189.tar.bz2
openbsd-4a281bbfac9305cf627db56e5f94897f6877f189.zip
type correctness; from Ray Lai in PR 5011; ok millert@
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;