diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 05:13:35 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-07-04 05:13:35 +0000 |
commit | 1118095d33e01dbec3b627d99d3c4b83b82523dc (patch) | |
tree | b0fed2e66f97508bd69c96ea301db5a686e5ac42 /channels.c | |
parent | db47f383e6718b102dfe562e5c80f83330c08593 (diff) |
- stevesk@cvs.openbsd.org 2001/06/29 18:40:28
[channels.c]
use socklen_t for getsockopt arg #5; ok markus@
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
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" |
42 | RCSID("$OpenBSD: channels.c,v 1.128 2001/06/25 08:25:35 markus Exp $"); | 42 | RCSID("$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 | |||
1142 | channel_post_connecting(Channel *c, fd_set * readset, fd_set * writeset) | 1142 | channel_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, |