]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
__dead -> __attribute__((noreturn))
authorAntti Kantee <pooka@iki.fi>
Tue, 13 Oct 2015 11:43:57 +0000 (11:43 +0000)
committerAntti Kantee <pooka@iki.fi>
Tue, 13 Oct 2015 11:55:34 +0000 (11:55 +0000)
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
lib/librumprun_base/rumprun.c

index 5723a16811acdaac8316b83d2473cc00ee962e7c..674d56aa46273bf99c67678730ac28250a90d9be 100644 (file)
@@ -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);
index 2f418507d723c34ca56422601a71a16bc449b1fe..d0666810ee2dd6549b748b9d763bb6aa70bbbdf6 100644 (file)
@@ -287,7 +287,7 @@ rumprun_daemon(void)
        pthread_mutex_unlock(&w_mtx);
 }
 
-void __dead
+void __attribute__((noreturn))
 rumprun_reboot(void)
 {