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;
vid = 0;
vid = strtol(pbuf, NULL, 16);
- if (!num) {
+ if (!vid) {
PARSEERROR;
continue;
}
pid = 0;
pid = strtol(pbuf, NULL, 16);
- if (!num) {
+ if (!pid) {
PARSEERROR;
continue;
}