Skip to content

Commit e9a2c54

Browse files
committed
remove ref
1 parent f04f8b2 commit e9a2c54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Monitor.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace Monitor {
114114
char namebuf[1024];
115115
while (pci_device != null) {
116116
print (" %04x:%02x:%02x.%d\n", pci_device.domain_16, pci_device.bus, pci_device.dev, pci_device.func);
117-
// string name = Pci.pci_lookup_name (pci_access, namebuf, namebuf.length, Pci.LookupMode.DEVICE, pci_device.vendor_id, pci_device.device_id);
117+
string name = Pci.pci_lookup_name (pci_access, namebuf, namebuf.length, Pci.LookupMode.DEVICE, pci_device.vendor_id, pci_device.device_id);
118118
pci_device = pci_device.next;
119119
}
120120

vapi/pci.vapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ namespace Pci {
173173
* PROGIF (classID, progif) -> programming interface
174174
*/
175175
[CCode (cname = "pci_lookup_name")]
176-
string pci_lookup_name (Access * a, ref char[] buf, int flags, ...);
176+
string pci_lookup_name (Access * a, char[] buf, int name_size, int flags, ...);
177177

178178
}

0 commit comments

Comments
 (0)