]> sigrok.org Git - libserialport.git/commitdiff
Fix missing variable on macosx.
authorAurelien Jacobs <redacted>
Fri, 13 Jun 2014 21:47:45 +0000 (23:47 +0200)
committerAurelien Jacobs <redacted>
Fri, 13 Jun 2014 21:47:45 +0000 (23:47 +0200)
macosx.c

index c1c5d9106387c9a595bbc149c292248dc8941637..71bf0a09cff1a8e4eda92c7750262776b3e0c74f 100644 (file)
--- 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)))