summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-02-26 20:03:52 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-02-26 20:03:52 +0000
commit9195fa8f9cdbeb90d65ff997075bbf288e0c3343 (patch)
treeff76c56b73fd908bf512488c949396c45fa18ea1 /usr.bin/ssh/misc.c
parent02d79d03743e6f02bdd2d8b8de7f473359ede165 (diff)
use socklen_t
Diffstat (limited to 'usr.bin/ssh/misc.c')
-rw-r--r--usr.bin/ssh/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index 478e66ce5ca..e9b6d61d65f 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.16 2002/02/24 19:59:42 stevesk Exp $ */
+/* $OpenBSD: misc.c,v 1.17 2002/02/26 20:03:51 stevesk Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -25,7 +25,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: misc.c,v 1.16 2002/02/24 19:59:42 stevesk Exp $");
+RCSID("$OpenBSD: misc.c,v 1.17 2002/02/26 20:03:51 stevesk Exp $");
#include "misc.h"
#include "log.h"
@@ -96,7 +96,8 @@ unset_nonblock(int fd)
void
set_nodelay(int fd)
{
- int opt, optlen;
+ int opt;
+ socklen_t optlen;
optlen = sizeof opt;
if (getsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, &optlen) == -1) {