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.
This commit is contained in:
parent
69ba35146f
commit
f23b1bc534
|
@ -910,9 +910,8 @@ struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue