From 87a524d9313428d55e5a04c2538042629bdc467a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 31 Mar 2020 18:19:27 +0200 Subject: cleanup: delete remains of libutil - exec_t belongs to service.h, the main place where it is used/needed - code for executing exec_t is moved to runsvc for the same reason - what is left are NORETURN and ARRAY_SIZE - the former can be replaced with direct attribute usage since the only relevant compilers all support the attribute. - the later is only used in 3 places and can be trivially replaced with direct usage of sizeof(). Signed-off-by: David Oberhollenzer --- cmd/killall5.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd/killall5.c') diff --git a/cmd/killall5.c b/cmd/killall5.c index ccab429..733c0eb 100644 --- a/cmd/killall5.c +++ b/cmd/killall5.c @@ -9,9 +9,7 @@ #include #include -#include "util.h" - -static NORETURN void usage_and_exit(void) +static __attribute__((noreturn)) void usage_and_exit(void) { fputs("Usage: killall5 SIGNAL\n", stderr); exit(EXIT_FAILURE); -- cgit v1.2.3