comparison cli-channel.c @ 165:0cfba3034be5

Fixed DEBUG_TRACE macro so that we don't get semicolons left about the place
author Matt Johnston <matt@ucc.asn.au>
date Sun, 02 Jan 2005 20:25:56 +0000
parents d3eb1fa8484e
children 161557a9dde8
comparison
equal deleted inserted replaced
161:b9d3f725e00b 165:0cfba3034be5
35 35
36 unsigned int chan; 36 unsigned int chan;
37 struct Channel *channel; 37 struct Channel *channel;
38 unsigned int datatype; 38 unsigned int datatype;
39 39
40 TRACE(("enter recv_msg_channel_extended_data")); 40 TRACE(("enter recv_msg_channel_extended_data"))
41 41
42 chan = buf_getint(ses.payload); 42 chan = buf_getint(ses.payload);
43 channel = getchannel(chan); 43 channel = getchannel(chan);
44 44
45 if (channel == NULL) { 45 if (channel == NULL) {
46 dropbear_exit("Unknown channel"); 46 dropbear_exit("Unknown channel");
47 } 47 }
48 48
49 if (channel->type != &clichansess) { 49 if (channel->type != &clichansess) {
50 TRACE(("leave recv_msg_channel_extended_data: chantype is wrong")); 50 TRACE(("leave recv_msg_channel_extended_data: chantype is wrong"))
51 return; /* we just ignore it */ 51 return; /* we just ignore it */
52 } 52 }
53 53
54 datatype = buf_getint(ses.payload); 54 datatype = buf_getint(ses.payload);
55 55
56 if (datatype != SSH_EXTENDED_DATA_STDERR) { 56 if (datatype != SSH_EXTENDED_DATA_STDERR) {
57 TRACE(("leave recv_msg_channel_extended_data: wrong datatype: %d", 57 TRACE(("leave recv_msg_channel_extended_data: wrong datatype: %d",
58 datatype)); 58 datatype))
59 return; 59 return;
60 } 60 }
61 61
62 common_recv_msg_channel_data(channel, channel->errfd, channel->extrabuf); 62 common_recv_msg_channel_data(channel, channel->errfd, channel->extrabuf);
63 63
64 TRACE(("leave recv_msg_channel_extended_data")); 64 TRACE(("leave recv_msg_channel_extended_data"))
65 } 65 }