summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 2721ec6bc..937e059cc 100644
--- a/channels.c
+++ b/channels.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: channels.c,v 1.128 2001/06/25 08:25:35 markus Exp $"); 42RCSID("$OpenBSD: channels.c,v 1.129 2001/06/29 18:40:28 stevesk Exp $");
43 43
44#include "ssh.h" 44#include "ssh.h"
45#include "ssh1.h" 45#include "ssh1.h"
@@ -1142,7 +1142,7 @@ static void
1142channel_post_connecting(Channel *c, fd_set * readset, fd_set * writeset) 1142channel_post_connecting(Channel *c, fd_set * readset, fd_set * writeset)
1143{ 1143{
1144 int err = 0; 1144 int err = 0;
1145 int sz = sizeof(err); 1145 socklen_t sz = sizeof(err);
1146 1146
1147 if (FD_ISSET(c->sock, writeset)) { 1147 if (FD_ISSET(c->sock, writeset)) {
1148 if (getsockopt(c->sock, SOL_SOCKET, SO_ERROR, (char *)&err, 1148 if (getsockopt(c->sock, SOL_SOCKET, SO_ERROR, (char *)&err,