diff options
| author | otto <> | 2006-02-11 19:31:18 +0000 |
|---|---|---|
| committer | otto <> | 2006-02-11 19:31:18 +0000 |
| commit | 4a281bbfac9305cf627db56e5f94897f6877f189 (patch) | |
| tree | c8660376e0a8d730b3d4f7d2888138b8209faf11 | |
| parent | c5ab6afac874388050ff617dc754f0917bab54ec (diff) | |
| download | openbsd-4a281bbfac9305cf627db56e5f94897f6877f189.tar.gz openbsd-4a281bbfac9305cf627db56e5f94897f6877f189.tar.bz2 openbsd-4a281bbfac9305cf627db56e5f94897f6877f189.zip | |
type correctness; from Ray Lai in PR 5011; ok millert@
| -rw-r--r-- | src/usr.bin/nc/atomicio.c | 4 |
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; |
