]> sigrok.org Git - libserialport.git/commitdiff
Fix enumeration on OS X.
authorMartin Ling <redacted>
Mon, 4 Nov 2013 00:00:05 +0000 (00:00 +0000)
committerUwe Hermann <redacted>
Thu, 14 Nov 2013 23:42:39 +0000 (00:42 +0100)
serialport.c

index b47ddd931b50692e0d5e6470e0509d870d6b3583..7022a9dedc8e16d5427d51dd74f54b488e779bb1 100644 (file)
@@ -205,7 +205,7 @@ out_done:
        CFDictionarySetValue(classes,
                        CFSTR(kIOSerialBSDTypeKey), CFSTR(kIOSerialBSDAllTypes));
 
-       if (!(IOServiceGetMatchingServices(master, classes, &iter)))
+       if (IOServiceGetMatchingServices(master, classes, &iter) != KERN_SUCCESS)
        {
                ret = SP_ERR_FAIL;
                goto out_done;