diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:31:28 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-05 01:31:28 +0000 |
commit | 733a2351f52f8c8451a61f0ae636081f55b019f7 (patch) | |
tree | 21ae2ef0ba10ea252420cfe0c0b2b1aca0647529 /canohost.c | |
parent | e86de51afb891a21b9d5c0a3596b946741876c55 (diff) |
- stevesk@cvs.openbsd.org 2002/02/27 21:23:13
[canohost.c channels.c packet.c sshd.c]
remove unneeded casts in [gs]etsockopt(); ok markus@
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: canohost.c,v 1.30 2002/01/29 14:32:03 markus Exp $"); +RCSID("$OpenBSD: canohost.c,v 1.31 2002/02/27 21:23:13 stevesk Exp $"); #include "packet.h" #include "xmalloc.h" @@ -154,7 +154,7 @@ check_ip_options(int socket, char *ipaddr) else ipproto = IPPROTO_IP; option_size = sizeof(options); - if (getsockopt(socket, ipproto, IP_OPTIONS, (void *)options, + if (getsockopt(socket, ipproto, IP_OPTIONS, options, &option_size) >= 0 && option_size != 0) { text[0] = '\0'; for (i = 0; i < option_size; i++) |