diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-07-07 11:28:34 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-07-07 11:35:54 +0200 |
commit | b2b67fa74ebf24a20d1b44fa2036b106b4a0d722 (patch) | |
tree | 2446424b7b176938bd9e84df1203f5b1f2ee90c2 /gatchat | |
parent | 96754c0dfc5548202059d9dfdd79681c222c0b3b (diff) | |
download | ofono-b2b67fa74ebf24a20d1b44fa2036b106b4a0d722.tar.bz2 |
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)
^
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatchat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index 33bfc212..d7d00605 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -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); |