]> code.delx.au - pulseaudio/commitdiff
bluetooth: add a parenthesis around pa_streq()
authorDeng Zhengrong <dzrongg@gmail.com>
Wed, 11 Jul 2012 14:42:04 +0000 (22:42 +0800)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 17 Jul 2012 05:39:33 +0000 (11:09 +0530)
I know that pa_streq() is defined with an extra parenthesis, but everytime I
look at it, it makes me nervous. :D

So it's better to add the parenthesis here.

src/modules/bluetooth/module-bluetooth-policy.c

index 665185d285a0b90927cadd838cdbe41f6ca61ce4..7f194470155253fa9cf59a343b1dc42abd6a6bd2 100644 (file)
@@ -65,7 +65,7 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source,
     if (!s)
         return PA_HOOK_OK;
 
-    if pa_streq(s, "a2dp_source")
+    if (pa_streq(s, "a2dp_source"))
         role = "music";
     else {
         pa_log_debug("Profile %s cannot be selected for loopback", s);