summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-15 11:29:51 +1100
committerDamien Miller <djm@mindrot.org>2006-03-15 11:29:51 +1100
commit3fd019ecca7d41702111f926f08e370946cf9060 (patch)
tree10231597435e922aca25e1930b031acd809b0d49
parent9cf6d077fb87b4364e70c9fd889bf26744718301 (diff)
- otto@cvs.openbsd.org 2006/02/11 19:31:18
[atomicio.c] type correctness; from Ray Lai in PR 5011; ok millert@
-rw-r--r--ChangeLog5
-rw-r--r--atomicio.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b6ddb879d..70cd90426 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -66,6 +66,9 @@
66 [includes.h monitor.c readpass.c scp.c serverloop.c session.c] 66 [includes.h monitor.c readpass.c scp.c serverloop.c session.c]
67 [sftp.c sshconnect.c sshconnect2.c sshd.c] 67 [sftp.c sshconnect.c sshconnect2.c sshd.c]
68 move #include <sys/wait.h> out of includes.h; ok markus@ 68 move #include <sys/wait.h> out of includes.h; ok markus@
69 - otto@cvs.openbsd.org 2006/02/11 19:31:18
70 [atomicio.c]
71 type correctness; from Ray Lai in PR 5011; ok millert@
69 72
7020060313 7320060313
71 - (dtucker) [configure.ac] Bug #1171: Don't use printf("%lld", longlong) 74 - (dtucker) [configure.ac] Bug #1171: Don't use printf("%lld", longlong)
@@ -3967,4 +3970,4 @@
3967 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3970 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3968 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3971 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3969 3972
3970$Id: ChangeLog,v 1.4158 2006/03/15 00:29:24 djm Exp $ 3973$Id: ChangeLog,v 1.4159 2006/03/15 00:29:51 djm Exp $
diff --git a/atomicio.c b/atomicio.c
index 12abbda16..8dd271b6d 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: atomicio.c,v 1.13 2005/05/24 17:32:43 avsm Exp $"); 28RCSID("$OpenBSD: atomicio.c,v 1.14 2006/02/11 19:31:18 otto Exp $");
29 29
30#include "atomicio.h" 30#include "atomicio.h"
31 31
@@ -58,7 +58,7 @@ atomicio(f, fd, _s, n)
58 errno = EPIPE; 58 errno = EPIPE;
59 return pos; 59 return pos;
60 default: 60 default:
61 pos += (u_int)res; 61 pos += (size_t)res;
62 } 62 }
63 } 63 }
64 return (pos); 64 return (pos);