From bd833c2586b8625409b5aae98949baf6932b8476 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 12 Apr 2017 15:23:39 +0200 Subject: [PATCH] TT#14400 Use a boolean instead of a bitwise operator Using the bitwise operator seems confusing here, and the boolean operator will in addition short-circuit which should not be very significant performance-wise, but still nice. Change-Id: Icda38d7799aa264d9a6cc1f4a71587e60189b18e --- daemon/control_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/control_tcp.c b/daemon/control_tcp.c index bbbdba5a4..f65a048cb 100644 --- a/daemon/control_tcp.c +++ b/daemon/control_tcp.c @@ -131,7 +131,7 @@ static int control_stream_parse(struct control_stream *s, char *line) { call_delete_tcp(out, c->callmaster); else if (!strcmp(out[RE_TCP_DIV_CMD], "status")) calls_status_tcp(c->callmaster, s); - else if (!strcmp(out[RE_TCP_DIV_CMD], "build") | !strcmp(out[RE_TCP_DIV_CMD], "version")) + else if (!strcmp(out[RE_TCP_DIV_CMD], "build") || !strcmp(out[RE_TCP_DIV_CMD], "version")) control_stream_printf(s, "Version: %s\n", RTPENGINE_VERSION); else if (!strcmp(out[RE_TCP_DIV_CMD], "controls")) control_list(c, s);