diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-26 14:28:50 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-26 14:28:50 +1100 |
commit | a0fdce9a47dfa572fde97e1a2ee9b33efb9fd549 (patch) | |
tree | 39efc92f6b2e6729a839ecc89b41f22a809f08b0 /channels.c | |
parent | 08d61505d7229aaa5484439b2f2e98add3052afe (diff) |
- deraadt@cvs.openbsd.org 2006/03/25 18:56:55
[bufaux.c channels.c packet.c]
remove (char *) casts to a function that accepts void * for the arg
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels.c b/channels.c index 70ffd7b33..57634a21d 100644 --- a/channels.c +++ b/channels.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.c,v 1.245 2006/03/25 18:43:30 deraadt Exp $ */ | 1 | /* $OpenBSD: channels.c,v 1.246 2006/03/25 18:56:54 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -988,7 +988,7 @@ channel_decode_socks4(Channel *c, fd_set *readset, fd_set *writeset) | |||
988 | s4_rsp.command = 90; /* cd: req granted */ | 988 | s4_rsp.command = 90; /* cd: req granted */ |
989 | s4_rsp.dest_port = 0; /* ignored */ | 989 | s4_rsp.dest_port = 0; /* ignored */ |
990 | s4_rsp.dest_addr.s_addr = INADDR_ANY; /* ignored */ | 990 | s4_rsp.dest_addr.s_addr = INADDR_ANY; /* ignored */ |
991 | buffer_append(&c->output, (char *)&s4_rsp, sizeof(s4_rsp)); | 991 | buffer_append(&c->output, &s4_rsp, sizeof(s4_rsp)); |
992 | return 1; | 992 | return 1; |
993 | } | 993 | } |
994 | 994 | ||
@@ -1097,9 +1097,9 @@ channel_decode_socks5(Channel *c, fd_set *readset, fd_set *writeset) | |||
1097 | ((struct in_addr *)&dest_addr)->s_addr = INADDR_ANY; | 1097 | ((struct in_addr *)&dest_addr)->s_addr = INADDR_ANY; |
1098 | dest_port = 0; /* ignored */ | 1098 | dest_port = 0; /* ignored */ |
1099 | 1099 | ||
1100 | buffer_append(&c->output, (char *)&s5_rsp, sizeof(s5_rsp)); | 1100 | buffer_append(&c->output, &s5_rsp, sizeof(s5_rsp)); |
1101 | buffer_append(&c->output, (char *)&dest_addr, sizeof(struct in_addr)); | 1101 | buffer_append(&c->output, &dest_addr, sizeof(struct in_addr)); |
1102 | buffer_append(&c->output, (char *)&dest_port, sizeof(dest_port)); | 1102 | buffer_append(&c->output, &dest_port, sizeof(dest_port)); |
1103 | return 1; | 1103 | return 1; |
1104 | } | 1104 | } |
1105 | 1105 | ||