X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/blobdiff_plain/61e0de7a4b7ed1b2c7a700a3b3db10ffacba9acb..0c2db148a4e604ceeab5eda38efcf64d1ef25c76:/config.c diff --git a/config.c b/config.c index e09d5ca..a39902e 100644 --- a/config.c +++ b/config.c @@ -17,11 +17,14 @@ static struct parport_config pp_config[4]; static void read_config() { int i; - int line, len, num; static int config_read = 0; FILE *cfg; - char buf[LINELEN], *pbuf; + char buf[LINELEN]; +#ifdef JTAGKEY + char *pbuf; unsigned short vid, pid; + int line, len, num; +#endif if (config_read) return; @@ -140,7 +143,7 @@ static void read_config() { vid = 0; vid = strtol(pbuf, NULL, 16); - if (!num) { + if (!vid) { PARSEERROR; continue; } @@ -155,7 +158,7 @@ static void read_config() { pid = 0; pid = strtol(pbuf, NULL, 16); - if (!num) { + if (!pid) { PARSEERROR; continue; }