diff options
author | sanpei <sanpei@FreeBSD.org> | 2000-10-13 09:51:18 +0000 |
---|---|---|
committer | sanpei <sanpei@FreeBSD.org> | 2000-10-13 09:51:18 +0000 |
commit | c71149f590508a17b9b863ba89d6625ca9eb3c46 (patch) | |
tree | 4bec758bcbc5112592b460cc265901e6fbc4462c | |
parent | 0292a311c7cb1a30c72f639a32536137a9f454b1 (diff) | |
download | FreeBSD-src-c71149f590508a17b9b863ba89d6625ca9eb3c46.zip FreeBSD-src-c71149f590508a17b9b863ba89d6625ca9eb3c46.tar.gz |
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
-rw-r--r-- | release/sysinstall/pccard.c | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/pccard.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/release/sysinstall/pccard.c b/release/sysinstall/pccard.c index dbb69ce..ba7a9bd 100644 --- a/release/sysinstall/pccard.c +++ b/release/sysinstall/pccard.c @@ -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); } } } diff --git a/usr.sbin/sysinstall/pccard.c b/usr.sbin/sysinstall/pccard.c index dbb69ce..ba7a9bd 100644 --- a/usr.sbin/sysinstall/pccard.c +++ b/usr.sbin/sysinstall/pccard.c @@ -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); } } } |