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
This commit is contained in:
bdean 2005-02-10 18:37:37 +00:00
parent 7d693ef797
commit 5a7b9e59b6
1 changed files with 5 additions and 5 deletions

10
main.c
View File

@ -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);