From f2f281ec131a8f8c1f96d33a25d7c0da192212a6 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Tue, 13 Oct 2015 11:43:57 +0000 Subject: [PATCH] __dead -> __attribute__((noreturn)) That way we don't have to depend on __dead being defined (which might not be the case in every place we need to include this header). --- include/rumprun-base/rumprun.h | 2 +- lib/librumprun_base/rumprun.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rumprun-base/rumprun.h b/include/rumprun-base/rumprun.h index 5723a16..674d56a 100644 --- a/include/rumprun-base/rumprun.h +++ b/include/rumprun-base/rumprun.h @@ -68,7 +68,7 @@ void * rumprun(mainlike_fn, int, char *[]); int rumprun_wait(void *); void * rumprun_get_finished(void); -void rumprun_reboot(void) __dead; +void rumprun_reboot(void) __attribute__((noreturn)); /* XXX: this prototype shouldn't be here (if it should exist at all) */ void rumprun_daemon(void); diff --git a/lib/librumprun_base/rumprun.c b/lib/librumprun_base/rumprun.c index 2f41850..d066681 100644 --- a/lib/librumprun_base/rumprun.c +++ b/lib/librumprun_base/rumprun.c @@ -287,7 +287,7 @@ rumprun_daemon(void) pthread_mutex_unlock(&w_mtx); } -void __dead +void __attribute__((noreturn)) rumprun_reboot(void) { -- 2.39.5