projects
/
profile
/
ivi
/
OpenAVB.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd6254
)
mrp: examples: mrp_client: mrpd_helper, bugfix in parse_state() function
author
Andrew Elder
<aelder@audioscience.com>
Fri, 31 May 2013 15:10:53 +0000
(11:10 -0400)
committer
Andrew Elder
<aelder@audioscience.com>
Thu, 6 Jun 2013 16:09:31 +0000
(12:09 -0400)
examples/mrp_client/mrpdhelper.c
patch
|
blob
|
history
diff --git
a/examples/mrp_client/mrpdhelper.c
b/examples/mrp_client/mrpdhelper.c
index
0c32774
..
9a26ca7
100755
(executable)
--- a/
examples/mrp_client/mrpdhelper.c
+++ b/
examples/mrp_client/mrpdhelper.c
@@
-108,9
+108,9
@@
static int parse_state(char *sz, struct mrpdhelper_notify *n)
if (strncmp(sz, "IN", 2) == 0) {
n->state = mrpdhelper_state_in;
- } else if (strncmp(sz, "LV",
3
) == 0) {
+ } else if (strncmp(sz, "LV",
2
) == 0) {
n->state = mrpdhelper_state_leave;
- } else if (strncmp(sz, "MT",
3
) == 0) {
+ } else if (strncmp(sz, "MT",
2
) == 0) {
n->state = mrpdhelper_state_empty;
} else {
return -1;