Fix placement of local variable - variables must be declared before
any statements within a block. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@349 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
282dfb1eac
commit
37b213c599
4
main.c
4
main.c
|
@ -749,6 +749,9 @@ int main(int argc, char * argv [])
|
||||||
int set_cycles; /* value to set the erase-rewrite cycles to */
|
int set_cycles; /* value to set the erase-rewrite cycles to */
|
||||||
char * e; /* for strtol() error checking */
|
char * e; /* for strtol() error checking */
|
||||||
int quell_progress;
|
int quell_progress;
|
||||||
|
#if !defined(__CYGWIN__)
|
||||||
|
char * homedir;
|
||||||
|
#endif
|
||||||
|
|
||||||
progname = rindex(argv[0],'/');
|
progname = rindex(argv[0],'/');
|
||||||
if (progname)
|
if (progname)
|
||||||
|
@ -799,7 +802,6 @@ int main(int argc, char * argv [])
|
||||||
win_usr_config_set(usr_config);
|
win_usr_config_set(usr_config);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
char * homedir;
|
|
||||||
|
|
||||||
strcpy(sys_config, CONFIG_DIR);
|
strcpy(sys_config, CONFIG_DIR);
|
||||||
i = strlen(sys_config);
|
i = strlen(sys_config);
|
||||||
|
|
Loading…
Reference in New Issue