From 02f8ed3add44e442223f62a834864b8228367ac9 Mon Sep 17 00:00:00 2001
From: "Brian S. Dean" <bsd@bsdhome.com>
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/avrdude@520 81a1dc3b-b13d-400b-aceb-764788c761c2
---
 avr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/avr.c b/avr.c
index 17b27741..51e60271 100644
--- a/avr.c
+++ b/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) {