chiark / gitweb /
tree-wide: use IN_SET where possible
[elogind.git] / src / basic / process-util.c
index 2b31cbb2b61fb5e29a10eefb61980b96daec7f7b..22d6f5059b22bd5256065b8a33fa8e7ca6f9d107 100644 (file)
@@ -692,8 +692,7 @@ int wait_for_terminate_and_warn(const char *name, pid_t pid, bool check_exit_cod
                         log_debug("%s succeeded.", name);
 
                 return status.si_status;
-        } else if (status.si_code == CLD_KILLED ||
-                   status.si_code == CLD_DUMPED) {
+        } else if (IN_SET(status.si_code, CLD_KILLED, CLD_DUMPED)) {
 
                 log_warning("%s terminated by signal %s.", name, signal_to_string(status.si_status));
                 return -EPROTO;