summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-05 01:31:28 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-05 01:31:28 +0000
commit733a2351f52f8c8451a61f0ae636081f55b019f7 (patch)
tree21ae2ef0ba10ea252420cfe0c0b2b1aca0647529 /canohost.c
parente86de51afb891a21b9d5c0a3596b946741876c55 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/canohost.c b/canohost.c
index 5eb67f676..03005aa29 100644
--- a/canohost.c
+++ b/canohost.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: canohost.c,v 1.30 2002/01/29 14:32:03 markus Exp $"); 15RCSID("$OpenBSD: canohost.c,v 1.31 2002/02/27 21:23:13 stevesk Exp $");
16 16
17#include "packet.h" 17#include "packet.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -154,7 +154,7 @@ check_ip_options(int socket, char *ipaddr)
154 else 154 else
155 ipproto = IPPROTO_IP; 155 ipproto = IPPROTO_IP;
156 option_size = sizeof(options); 156 option_size = sizeof(options);
157 if (getsockopt(socket, ipproto, IP_OPTIONS, (void *)options, 157 if (getsockopt(socket, ipproto, IP_OPTIONS, options,
158 &option_size) >= 0 && option_size != 0) { 158 &option_size) >= 0 && option_size != 0) {
159 text[0] = '\0'; 159 text[0] = '\0';
160 for (i = 0; i < option_size; i++) 160 for (i = 0; i < option_size; i++)