diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-03-24 16:28:42 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-24 16:28:42 -0500 |
commit | 644d5922b2b820871dd0b55fd299bef36a248a65 (patch) | |
tree | f46b170849a602553d16ccc2459f6108f3a7dd19 | |
parent | 005ecd5dd9bb3b04360aaeb151e6e7ee1569c5b3 (diff) | |
download | ofono-644d5922b2b820871dd0b55fd299bef36a248a65.tar.bz2 |
Style: foo[0] is preferable to *foo
-rw-r--r-- | gatchat/gatserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index d48e2512..71e366dd 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -371,7 +371,7 @@ static unsigned int parse_basic_command(GAtServer *server, char *buf) i = strlen(prefix); - if (*prefix == 'D') { + if (prefix[0] == 'D') { type = G_AT_SERVER_REQUEST_TYPE_SET; /* All characters appearing on the same line, up to a @@ -428,7 +428,7 @@ done: /* Commands like ATA, ATZ cause the remainder line * to be ignored. */ - if (*prefix == 'A' || *prefix == 'Z') + if (prefix[0] == 'A' || prefix[0] == 'Z') return strlen(buf); /* Consumed the seperator ';' */ |