From e5fb5ed3a64f4be01b12061cb5d7ffd04c3e7db3 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Wed, 21 Sep 2005 01:26:54 +0000 Subject: [PATCH] All declarations need to be at the top of the block. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@520 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/avr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/avrdude/avr.c b/avrdude/avr.c index 17b27741..51e60271 100644 --- a/avrdude/avr.c +++ b/avrdude/avr.c @@ -485,6 +485,7 @@ int avr_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem, unsigned char safemode_hfuse; unsigned char safemode_efuse; unsigned char safemode_fuse; + int rc; /* If we write the fuses, then we need to tell safemode that they *should* change */ safemode_memfuses(0, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse); @@ -504,8 +505,6 @@ int avr_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem, safemode_memfuses(1, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse); - int rc; - if (pgm->write_byte) { rc = pgm->write_byte(pgm, p, mem, addr, data); if (rc == 0) {