From ae48dc3b3caeef7eaa4a079b11cdda988d9c1f0d Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 21 Jun 2020 00:06:29 +0200 Subject: Add streq and strcaseeq and use them throughout --- systemd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd.c') diff --git a/systemd.c b/systemd.c index a592d3a..1ddbd18 100644 --- a/systemd.c +++ b/systemd.c @@ -131,7 +131,7 @@ systemd_service_running(struct cfg *cfg, struct server *server) goto out; } - if (!strcmp(status, "active")) { + if (streq(status, "active")) { running = true; debug(DBG_SYSD, "systemd service %s (%s) is active", server->systemd_service, server->systemd_obj); -- cgit v1.2.3