From 3b334ea33f073aafd069463dd5d8fa03a4fa603b Mon Sep 17 00:00:00 2001 From: Arti Trivedi Bora Date: Wed, 6 Jun 2012 01:28:13 +0530 Subject: [PATCH] modules: Use pa_streq instead of strcmp. --- src/modules/bluetooth/module-bluetooth-proximity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/module-bluetooth-proximity.c b/src/modules/bluetooth/module-bluetooth-proximity.c index 3247017..7d69e82 100644 --- a/src/modules/bluetooth/module-bluetooth-proximity.c +++ b/src/modules/bluetooth/module-bluetooth-proximity.c @@ -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; } -- 2.7.4