Make -p variable partdesc global

This commit is contained in:
Stefan Rueger 2022-10-29 10:55:58 +01:00
parent 87df3216cb
commit d87eb14dc9
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
2 changed files with 2 additions and 2 deletions

View File

@ -37,6 +37,7 @@ extern char progbuf[]; // spaces same length as progname
extern int ovsigck; // override signature check (-F)
extern int verbose; // verbosity level (-v, -vv, ...)
extern int quell_progress; // quell progress report -q, reduce effective verbosity level (-qq, -qqq)
extern char *partdesc; // part id
int avrdude_message(int msglvl, const char *format, ...);
int avrdude_message2(FILE *fp, int lno, const char *file, const char *func, int msgmode, int msglvl, const char *format, ...);

View File

@ -154,7 +154,7 @@ static PROGRAMMER * pgm;
int verbose; /* verbose output */
int quell_progress; /* un-verebose output */
int ovsigck; /* 1=override sig check, 0=don't */
char *partdesc; /* part id */
/*
@ -487,7 +487,6 @@ int main(int argc, char * argv [])
int terminal; /* 1=enter terminal mode, 0=don't */
const char *exitspecs; /* exit specs string from command line */
char * programmer; /* programmer id */
char * partdesc; /* part id */
char sys_config[PATH_MAX]; /* system wide config file */
char usr_config[PATH_MAX]; /* per-user config file */
char executable_abspath[PATH_MAX]; /* absolute path to avrdude executable */