summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-25 13:37:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-25 13:37:12 +0000
commit273329d21ede8837cb26129816796ce41d505eb8 (patch)
tree08ad88fefef04634bf7b859f2d6553668f5caf59 /perl-install/c/stuff.xs.pl
parent4e82efd6deec83e69b16aa196ff416a910fa60b4 (diff)
downloaddrakx-273329d21ede8837cb26129816796ce41d505eb8.tar
drakx-273329d21ede8837cb26129816796ce41d505eb8.tar.gz
drakx-273329d21ede8837cb26129816796ce41d505eb8.tar.bz2
drakx-273329d21ede8837cb26129816796ce41d505eb8.tar.xz
drakx-273329d21ede8837cb26129816796ce41d505eb8.zip
don't copy struct pciusb_entries on the stack
Diffstat (limited to 'perl-install/c/stuff.xs.pl')
-rw-r--r--perl-install/c/stuff.xs.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl
index 2253c419e..d2377d8f9 100644
--- a/perl-install/c/stuff.xs.pl
+++ b/perl-install/c/stuff.xs.pl
@@ -336,10 +336,10 @@ pci_probe(probe_type)
EXTEND(SP, entries.nb);
for (i = 0; i < entries.nb; i++) {
- struct pciusb_entry e = entries.entries[i];
+ struct pciusb_entry *e = &entries.entries[i];
snprintf(buf, sizeof(buf), "%04x\t%04x\t%04x\t%04x\t%d\t%d\t%d\t%s\t%s\t%s",
- e.vendor, e.device, e.subvendor, e.subdevice, e.pci_bus, e.pci_device, e.pci_function,
- pci_class2text(e.class_), e.module ? e.module : "unknown", e.text);
+ e->vendor, e->device, e->subvendor, e->subdevice, e->pci_bus, e->pci_device, e->pci_function,
+ pci_class2text(e->class_), e->module ? e->module : "unknown", e->text);
PUSHs(sv_2mortal(newSVpv(buf, 0)));
}
pciusb_free(&entries);
@@ -353,9 +353,9 @@ usb_probe()
EXTEND(SP, entries.nb);
for (i = 0; i < entries.nb; i++) {
- struct pciusb_entry e = entries.entries[i];
+ struct pciusb_entry *e = &entries.entries[i];
snprintf(buf, sizeof(buf), "%04x\t%04x\t%s\t%s\t%s",
- e.vendor, e.device, usb_class2text(e.class_), e.module ? e.module : "unknown", e.text);
+ e->vendor, e->device, usb_class2text(e->class_), e->module ? e->module : "unknown", e->text);
PUSHs(sv_2mortal(newSVpv(buf, 0)));
}
pciusb_free(&entries);