summaryrefslogtreecommitdiff
path: root/systemd.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-21 00:06:29 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-21 00:06:29 +0200
commitae48dc3b3caeef7eaa4a079b11cdda988d9c1f0d (patch)
tree2b9ec4898b7fd71ae3551ee72f7891640dec5c07 /systemd.c
parentab51ac11e68ce0b075688bf17fc89e0ba645b2ed (diff)
Add streq and strcaseeq and use them throughout
Diffstat (limited to 'systemd.c')
-rw-r--r--systemd.c2
1 files changed, 1 insertions, 1 deletions
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);