From d3e4b0db145230e88e41ec59d484c6e8bd9dce23 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 10 Feb 2005 18:37:37 +0000 Subject: [PATCH] Variable declarations must only appear at the beginning of a block. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@449 81a1dc3b-b13d-400b-aceb-764788c761c2 --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index c7eaa331..a13745d0 100644 --- a/main.c +++ b/main.c @@ -708,6 +708,9 @@ int main(int argc, char * argv []) int quell_progress; int baudrate; /* override default programmer baud rate */ int safemode; /* Enable safemode, 1=safemode on, 0=normal */ + unsigned char safemode_lfuse = 0xff; + unsigned char safemode_hfuse = 0xff; + unsigned char safemode_efuse = 0xff; #if !defined(WIN32NATIVE) char * homedir; #endif @@ -1214,10 +1217,9 @@ int main(int argc, char * argv []) } } - unsigned char safemode_lfuse = 0xff; - unsigned char safemode_hfuse = 0xff; - unsigned char safemode_efuse = 0xff; if (safemode == 1) { + AVRMEM * m; + /* If safemode is enabled, go ahead and read the current low, high, and extended fuse bytes as needed */ @@ -1239,8 +1241,6 @@ int main(int argc, char * argv []) /* Check if user is attempting to write fuse bytes */ - AVRMEM * m; - for (ln=lfirst(updates); ln; ln=lnext(ln)) { upd = ldata(ln); m = avr_locate_mem(p, upd->memtype);