Mercurial > dropbear
comparison common-channel.c @ 1097:93e29b0ef8dc
Turn start_send_channel_request()'s type argument into char *
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 13:58:05 +0200 |
parents | c45d65392c1a |
children | f95b6e87cd0c |
comparison
equal
deleted
inserted
replaced
1096:a9e4d66ffb2c | 1097:93e29b0ef8dc |
---|---|
1242 } | 1242 } |
1243 return NULL; | 1243 return NULL; |
1244 } | 1244 } |
1245 | 1245 |
1246 void start_send_channel_request(struct Channel *channel, | 1246 void start_send_channel_request(struct Channel *channel, |
1247 unsigned char *type) { | 1247 char *type) { |
1248 | 1248 |
1249 CHECKCLEARTOWRITE(); | 1249 CHECKCLEARTOWRITE(); |
1250 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_REQUEST); | 1250 buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_REQUEST); |
1251 buf_putint(ses.writepayload, channel->remotechan); | 1251 buf_putint(ses.writepayload, channel->remotechan); |
1252 | 1252 |
1253 buf_putstring(ses.writepayload, type, strlen(type)); | 1253 buf_putstring(ses.writepayload, (const unsigned char *) type, strlen(type)); |
1254 | 1254 |
1255 } | 1255 } |