Style: foo[0] is preferable to *foo

This commit is contained in:
Denis Kenzior 2010-03-24 16:28:42 -05:00
parent 005ecd5dd9
commit 644d5922b2
1 changed files with 2 additions and 2 deletions

View File

@ -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 ';' */