BUILD: tools: fix build error with new PA_O_DEFAULT_DGRAM
Previous commit 69ba35146 ("MINOR: tools: introduce new option
PA_O_DEFAULT_DGRAM on str2sa_range.") managed to introduce a
parenthesis imbalance that broke the build. No backport is needed.
diff --git a/src/tools.c b/src/tools.c
index 3f3460d..98adb32 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -910,9 +910,8 @@
memset(&ss, 0, sizeof(ss));
/* prepare the default socket types */
- if (((opts & (PA_O_STREAM|PA_O_DGRAM)) == PA_O_DGRAM))
- || (((opts & (PA_O_STREAM|PA_O_DGRAM)) == (PA_O_DGRAM|PA_O_STREAM))
- && (opts & PA_O_DEFAULT_DGRAM))
+ if ((opts & (PA_O_STREAM|PA_O_DGRAM)) == PA_O_DGRAM ||
+ ((opts & (PA_O_STREAM|PA_O_DGRAM)) == (PA_O_DGRAM|PA_O_STREAM) && (opts & PA_O_DEFAULT_DGRAM)))
sock_type = ctrl_type = SOCK_DGRAM;
else
sock_type = ctrl_type = SOCK_STREAM;