mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix bug in ``the selection of pccard IRQs fully selectable''
in rev.1.12. card_irq is local variable, not global variable (variable_set2 and variable_get) Reviewed by: jkh
This commit is contained in:
parent
cb5b735396
commit
7713ddd380
2 changed files with 4 additions and 4 deletions
|
|
@ -136,7 +136,7 @@ pccardInitialize(void)
|
|||
int pcic_mem = 0xd0000;
|
||||
int beep_newstat;
|
||||
char card_device[16];
|
||||
char *card_irq = "";
|
||||
char card_irq[256] = "";
|
||||
char temp[256];
|
||||
char *spcic_mem;
|
||||
char pccardd_cmd[256];
|
||||
|
|
@ -192,7 +192,7 @@ pccardInitialize(void)
|
|||
for (i = 0; i < IRQ_COUNT; i++) {
|
||||
if ((CardIrq & IrqTable[i].my_bit) != 0) {
|
||||
sprintf(temp, "%s %s", card_irq, IrqTable[i].my_flag);
|
||||
variable_set2("card_irq", temp, 1);
|
||||
strcpy(card_irq, temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ pccardInitialize(void)
|
|||
int pcic_mem = 0xd0000;
|
||||
int beep_newstat;
|
||||
char card_device[16];
|
||||
char *card_irq = "";
|
||||
char card_irq[256] = "";
|
||||
char temp[256];
|
||||
char *spcic_mem;
|
||||
char pccardd_cmd[256];
|
||||
|
|
@ -192,7 +192,7 @@ pccardInitialize(void)
|
|||
for (i = 0; i < IRQ_COUNT; i++) {
|
||||
if ((CardIrq & IrqTable[i].my_bit) != 0) {
|
||||
sprintf(temp, "%s %s", card_irq, IrqTable[i].my_flag);
|
||||
variable_set2("card_irq", temp, 1);
|
||||
strcpy(card_irq, temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue