summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-12-06 22:38:19 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2015-12-07 18:41:49 +0100
commit4075c5421f35fe15adb08b9e3ae189a13ab7e408 (patch)
tree3d98c31fb57018200b462ad593d50a369f975f66 /ir/tv
parent31f3d128912d1097c070fee3bc46a122da28c181 (diff)
adt: Add and use 'streq()'.
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/tv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/tv/tv.c b/ir/tv/tv.c
index 42afe69..efcc153 100644
--- a/ir/tv/tv.c
+++ b/ir/tv/tv.c
@@ -1247,9 +1247,9 @@ ir_tarval *ir_tarval_from_ascii(const char *buf, ir_mode *mode)
}
case irms_data:
case irms_auxiliary:
- if (strcmp(buf, "bad") == 0)
+ if (streq(buf, "bad"))
return tarval_bad;
- else if (strcmp(buf, "unknown") == 0)
+ else if (streq(buf, "unknown"))
return tarval_unknown;
break;
}