if (m == 0) {
/* The array is now empty, remove the entire entry */
- assert(hashmap_remove(u->manager->watch_pids, PID_TO_PTR(-pid)) == array);
+ assert_se(hashmap_remove(u->manager->watch_pids, PID_TO_PTR(-pid)) == array);
free(array);
}
}
finish:
/* Put old signal handlers into place */
- assert(sigaction(SIGINT, &old_sigint_sa, NULL) >= 0);
- assert(sigaction(SIGTERM, &old_sigterm_sa, NULL) >= 0);
+ assert_se(sigaction(SIGINT, &old_sigint_sa, NULL) >= 0);
+ assert_se(sigaction(SIGTERM, &old_sigterm_sa, NULL) >= 0);
return 0;
}
_cleanup_(free_sleep_configp) SleepConfig *sleep_config = NULL;
log_info("/* %s */", __func__);
- assert(parse_sleep_config(&sleep_config) == 0);
+ assert_se(parse_sleep_config(&sleep_config) == 0);
_cleanup_free_ char *sum, *sus, *him, *his, *hym, *hys;