Browse Source

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
changes/61/12661/1
Guillem Jover 9 years ago
parent
commit
bd833c2586
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/control_tcp.c

+ 1
- 1
daemon/control_tcp.c View File

@ -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);


Loading…
Cancel
Save