[pulseaudio-discuss] [PATCH] bluetooth: add a parenthesis around pa_streq()

Deng Zhengrong dzrongg at gmail.com
Wed Jul 11 07:42:04 PDT 2012


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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c
index 665185d..7f19447 100644
--- a/src/modules/bluetooth/module-bluetooth-policy.c
+++ b/src/modules/bluetooth/module-bluetooth-policy.c
@@ -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);
-- 
1.7.11.1



More information about the pulseaudio-discuss mailing list