summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
authordamien <damien>1999-12-14 22:06:28 +0000
committerdamien <damien>1999-12-14 22:06:28 +0000
commit7fa44a44d68ac6ac9b85388877b2deea177dc4c2 (patch)
tree82839d5cf06598bbe4ca9365fd0291ce671e6bc9 /atomicio.c
parent8bc01698a5aa13d3038fee97eea1f93db885848b (diff)
downloadopenssh-7fa44a44d68ac6ac9b85388877b2deea177dc4c2.tar.gz
- Integrated patchs from Juergen Keil <jk@tools.de>
- Avoid void* pointer arithmatic - Use LDFLAGS correctly
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atomicio.c b/atomicio.c
index 46ffee35..fcab2ea7 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -24,7 +24,7 @@
*/
#include "includes.h"
-RCSID("$Id: atomicio.c,v 1.7 1999/12/07 06:03:33 damien Exp $");
+RCSID("$Id: atomicio.c,v 1.8 1999/12/14 22:06:28 damien Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -42,7 +42,7 @@ atomicio(f, fd, s, n)
int res, pos = 0;
while (n > pos) {
- res = (f) (fd, s + pos, n - pos);
+ res = (f) (fd, (char*)s + pos, n - pos);
switch (res) {
case -1:
if (errno == EINTR || errno == EAGAIN)