1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Fix missing variable on macosx.

This commit is contained in:
Aurelien Jacobs 2014-06-13 23:47:45 +02:00
parent e59ecb3359
commit 235269990b

View File

@ -28,13 +28,12 @@ enum sp_return get_port_details(struct sp_port *port)
char description[128]; char description[128];
int bus, address, vid, pid = -1; int bus, address, vid, pid = -1;
char manufacturer[128], product[128], serial[128]; char manufacturer[128], product[128], serial[128];
char baddr[32];
CFMutableDictionaryRef classes; CFMutableDictionaryRef classes;
io_iterator_t iter; io_iterator_t iter;
io_object_t ioport; io_object_t ioport, ioparent;
CFTypeRef cf_property, cf_bus, cf_address, cf_vendor, cf_product; CFTypeRef cf_property, cf_bus, cf_address, cf_vendor, cf_product;
Boolean result; Boolean result;
char path[PATH_MAX]; char path[PATH_MAX], class[16];
DEBUG("Getting serial port list"); DEBUG("Getting serial port list");
if (!(classes = IOServiceMatching(kIOSerialBSDServiceValue))) if (!(classes = IOServiceMatching(kIOSerialBSDServiceValue)))