A few more fixups, make sure that variable declarations are the

first thing in a function

--HG--
extra : convert_revision : 5e475ab869513f9ce5baff42838a656f99300487
This commit is contained in:
Matt Johnston 2006-03-26 09:26:43 +00:00
parent 3cee7b6378
commit d57a56407b
2 changed files with 8 additions and 8 deletions

View File

@ -168,10 +168,10 @@ static void put_termcodes() {
unsigned int value;
unsigned int mapcode;
TRACE(("enter put_termcodes"))
unsigned int bufpos1, bufpos2;
TRACE(("enter put_termcodes"))
if (tcgetattr(STDIN_FILENO, &tio) == -1) {
dropbear_log(LOG_WARNING, "Failed reading termmodes");
buf_putint(ses.writepayload, 1); /* Just the terminator */

View File

@ -158,6 +158,7 @@ void seedrandom() {
void reseedrandom() {
pid_t pid;
hash_state hs;
struct timeval tv;
if (!donerandinit) {
@ -167,7 +168,6 @@ void reseedrandom() {
pid = getpid();
gettimeofday(&tv, NULL);
hash_state hs;
sha1_init(&hs);
sha1_process(&hs, (void*)hashpool, sizeof(hashpool));
sha1_process(&hs, (void*)&pid, sizeof(pid));