projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
005ecd5
)
Style: foo[0] is preferable to *foo
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 24 Mar 2010 21:28:42 +0000
(16:28 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 24 Mar 2010 21:28:42 +0000
(16:28 -0500)
gatchat/gatserver.c
patch
|
blob
|
history
diff --git
a/gatchat/gatserver.c
b/gatchat/gatserver.c
index
d48e251
..
71e366d
100644
(file)
--- 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 ';' */