int l =
unsigned int l =
static void ssh2_msg_channel_data(Ssh ssh, struct Packet *pktin){    char *data;    int length;    unsigned i = ssh_pkt_getuint32(pktin);    struct ssh_channel *c;    c = find234(ssh->channels, &i, ssh_channelfind);    if (!c)	return;			       /* nonexistent channel */    if (pktin->type == SSH2_MSG_CHANNEL_EXTENDED_DATA &&	ssh_pkt_getuint32(pktin) != SSH2_EXTENDED_DATA_STDERR)	return;			       /* extended but not stderr */    ssh_pkt_getstring(pktin, &data, &length);    if (data) {	int bufsize = 0;	c->v.v2.locwindow -= length;	switch (c->type) {	  case CHAN_MAINSESSION:	    bufsize =		from_backend(ssh->frontend, pktin->type ==			     SSH2_MSG_CHANNEL_EXTENDED_DATA,			     data, length);	    break;	  case CHAN_X11:	    bufsize = x11_send(c->u.x11.s, data, length);	    break;	  case CHAN_SOCKDATA:	    bufsize = pfd_send(c->u.pfd.s, data, length);	    break;	  case CHAN_AGENT:	    while (length > 0) {		if (c->u.a.lensofar < 4) {		    int l = min(4 - c->u.a.lensofar, length);		    memcpy(c->u.a.msglen + c->u.a.lensofar,			   data, l);		    data += l;		    length -= l;		    c->u.a.lensofar += l;		}		if (c->u.a.lensofar == 4) {		    c->u.a.totallen =			4 + GET_32BIT(c->u.a.msglen);		    c->u.a.message = snewn(c->u.a.totallen,					   unsigned char);		    memcpy(c->u.a.message, c->u.a.msglen, 4);		}		if (c->u.a.lensofar >= 4 && length > 0) {		    int l =			min(c->u.a.totallen - c->u.a.lensofar,			    length);		    memcpy(c->u.a.message + c->u.a.lensofar,			   data, l);		    data += l;		    length -= l;		    c->u.a.lensofar += l;		}		if (c->u.a.lensofar == c->u.a.totallen) {		    void *reply;		    int replylen;		    if (agent_query(c->u.a.message,				    c->u.a.totallen,				    &reply, &replylen,				    ssh_agentf_callback, c))			ssh_agentf_callback(c, reply, replylen);		    sfree(c->u.a.message);		    c->u.a.lensofar = 0;		}	    }	    bufsize = 0;	    break;	}	/*	 * If we are not buffering too much data,	 * enlarge the window again at the remote side.	 */	if (bufsize < OUR_V2_WINSIZE)	    ssh2_set_window(c, OUR_V2_WINSIZE - bufsize);    }}