From: Aurelien Jacobs Date: Fri, 13 Jun 2014 21:47:45 +0000 (+0200) Subject: Fix missing variable on macosx. X-Git-Tag: libserialport-0.1.1~124 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=235269990bd62a906af871c34839ebb922eecb45;p=libserialport.git Fix missing variable on macosx. --- diff --git a/macosx.c b/macosx.c index c1c5d91..71bf0a0 100644 --- a/macosx.c +++ b/macosx.c @@ -28,13 +28,12 @@ enum sp_return get_port_details(struct sp_port *port) char description[128]; int bus, address, vid, pid = -1; char manufacturer[128], product[128], serial[128]; - char baddr[32]; CFMutableDictionaryRef classes; io_iterator_t iter; - io_object_t ioport; + io_object_t ioport, ioparent; CFTypeRef cf_property, cf_bus, cf_address, cf_vendor, cf_product; Boolean result; - char path[PATH_MAX]; + char path[PATH_MAX], class[16]; DEBUG("Getting serial port list"); if (!(classes = IOServiceMatching(kIOSerialBSDServiceValue)))