modules: Use pa_streq instead of strcmp.
authorArti Trivedi Bora <tbaarti@gmail.com>
Tue, 5 Jun 2012 19:58:13 +0000 (01:28 +0530)
committerJaska Uimonen <jaska.uimonen@intel.com>
Thu, 24 Jan 2013 07:29:35 +0000 (09:29 +0200)
src/modules/bluetooth/module-bluetooth-proximity.c

index 3247017..7d69e82 100644 (file)
@@ -228,7 +228,7 @@ static struct bonding* bonding_new(struct userdata *u, const char *a) {
         goto fail;
     }
 
-    if (strcmp(class, "phone")) {
+    if (!pa_streq(class, "phone")) {
         pa_log_info("Found device '%s' of class '%s', ignoring.", a, class);
         goto fail;
     }