diff options
author | Andrew Elder <aelder@audioscience.com> | 2013-05-31 11:10:53 -0400 |
---|---|---|
committer | Andrew Elder <aelder@audioscience.com> | 2013-06-06 12:09:31 -0400 |
commit | 06f9e00982bd331552a31a5f033edf9fc1f60bd3 (patch) | |
tree | 5c5fa4511a41bf0ed1bd522317c1cbb5776148f6 | |
parent | 9dd6254a264279cc92cb2cd5cd8a368653138e26 (diff) | |
download | Open-AVB-06f9e00982bd331552a31a5f033edf9fc1f60bd3.tar.gz |
mrp: examples: mrp_client: mrpd_helper, bugfix in parse_state() function
-rwxr-xr-x | examples/mrp_client/mrpdhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mrp_client/mrpdhelper.c b/examples/mrp_client/mrpdhelper.c index 0c32774f..9a26ca7b 100755 --- 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; |