diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-02-11 19:31:19 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-02-11 19:31:19 +0000 |
commit | a62c6e739a0dfd04041deeac3d82c959606ac30b (patch) | |
tree | 02825d9e4070ffc34336a6e7cd02872dcbb5305a /usr.bin | |
parent | bef02d1276eb64fa1ac891c0d08cd4fa9e66353d (diff) |
type correctness; from Ray Lai in PR 5011; ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nc/atomicio.c | 4 | ||||
-rw-r--r-- | usr.bin/ssh/atomicio.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/nc/atomicio.c b/usr.bin/nc/atomicio.c index dfd66328a2c..c3f26846df9 100644 --- a/usr.bin/nc/atomicio.c +++ b/usr.bin/nc/atomicio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atomicio.c,v 1.7 2005/05/26 01:01:08 avsm Exp $ */ +/* $OpenBSD: atomicio.c,v 1.8 2006/02/11 19:31:18 otto Exp $ */ /* * Copyright (c) 2005 Anil Madhavapeddy. All rights served. @@ -57,7 +57,7 @@ atomicio(f, fd, _s, n) errno = EPIPE; return pos; default: - pos += (u_int)res; + pos += (size_t)res; } } return pos; diff --git a/usr.bin/ssh/atomicio.c b/usr.bin/ssh/atomicio.c index a71808a6846..6ee6adcb2ee 100644 --- a/usr.bin/ssh/atomicio.c +++ b/usr.bin/ssh/atomicio.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: atomicio.c,v 1.13 2005/05/24 17:32:43 avsm Exp $"); +RCSID("$OpenBSD: atomicio.c,v 1.14 2006/02/11 19:31:18 otto Exp $"); #include "atomicio.h" @@ -54,7 +54,7 @@ atomicio(f, fd, _s, n) errno = EPIPE; return pos; default: - pos += (u_int)res; + pos += (size_t)res; } } return (pos); |