comparison cli-chansession.c @ 311:36d21680a9d3

A few more fixups, make sure that variable declarations are the first thing in a function
author Matt Johnston <matt@ucc.asn.au>
date Sun, 26 Mar 2006 09:26:43 +0000
parents baea1d43e7eb
children a9e0ddac5ba7
comparison
equal deleted inserted replaced
301:fb3678bdb8c7 311:36d21680a9d3
166 unsigned int sshcode; 166 unsigned int sshcode;
167 const struct TermCode *termcode; 167 const struct TermCode *termcode;
168 unsigned int value; 168 unsigned int value;
169 unsigned int mapcode; 169 unsigned int mapcode;
170 170
171 unsigned int bufpos1, bufpos2;
172
171 TRACE(("enter put_termcodes")) 173 TRACE(("enter put_termcodes"))
172
173 unsigned int bufpos1, bufpos2;
174 174
175 if (tcgetattr(STDIN_FILENO, &tio) == -1) { 175 if (tcgetattr(STDIN_FILENO, &tio) == -1) {
176 dropbear_log(LOG_WARNING, "Failed reading termmodes"); 176 dropbear_log(LOG_WARNING, "Failed reading termmodes");
177 buf_putint(ses.writepayload, 1); /* Just the terminator */ 177 buf_putint(ses.writepayload, 1); /* Just the terminator */
178 buf_putbyte(ses.writepayload, 0); /* TTY_OP_END */ 178 buf_putbyte(ses.writepayload, 0); /* TTY_OP_END */