gatchat: Fix compiler warning with logical expression

CC       gatchat/gatchat.o
gatchat/gatchat.c: In function ‘have_line’:
gatchat/gatchat.c:586:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
  if (!strncmp(str, "AT", 2) == TRUE)
                            ^
This commit is contained in:
Marcel Holtmann 2015-07-07 11:28:34 +02:00
parent 96754c0dfc
commit b2b67fa74e
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ static void have_line(struct at_chat *p, char *str)
return;
/* Check for echo, this should not happen, but lets be paranoid */
if (!strncmp(str, "AT", 2) == TRUE)
if (!strncmp(str, "AT", 2))
goto done;
cmd = g_queue_peek_head(p->command_queue);