From 69efa94f9f44e00cea3e2d68a83717c0632d68fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 27 Jan 2021 15:12:06 +0100 Subject: Use String_eq wrapper instead of raw strcmp --- linux/SystemdMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/SystemdMeter.c') diff --git a/linux/SystemdMeter.c b/linux/SystemdMeter.c index f6dcb3fb..54abbe50 100644 --- a/linux/SystemdMeter.c +++ b/linux/SystemdMeter.c @@ -303,7 +303,7 @@ static int valueDigitColor(unsigned int value) { static void SystemdMeter_display(ATTR_UNUSED const Object* cast, RichString* out) { char buffer[16]; - int color = (systemState && 0 == strcmp(systemState, "running")) ? METER_VALUE_OK : METER_VALUE_ERROR; + int color = (systemState && String_eq(systemState, "running")) ? METER_VALUE_OK : METER_VALUE_ERROR; RichString_writeAscii(out, CRT_colors[color], systemState ? systemState : "N/A"); RichString_appendAscii(out, CRT_colors[METER_TEXT], " ("); -- cgit v1.2.3