summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-25 17:49:21 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-25 17:49:21 +0200
commit73b44d2c58018352ebe4b280431d4cdfd0019c1e (patch)
treeaaf59384df92159698d16c202b93919dc29181d7
parent69a890f096aca015107c48bbfdfb27e53a932d24 (diff)
error: use C11 noreturn keyword
-rw-r--r--error.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/error.h b/error.h
index 653340a..e8e3382 100644
--- a/error.h
+++ b/error.h
@@ -30,6 +30,8 @@
#ifndef _ERROR_H
#define _ERROR_H
+#include <stdnoreturn.h>
+
#include "macros.h"
/*
@@ -85,6 +87,6 @@ unsigned int error_from_errno(int errno_code);
* This function will report the given error and make the process exit,
* using the error code as the exit() parameter.
*/
-void __noreturn error_die(unsigned int error);
+noreturn void error_die(unsigned int error);
#endif /* _ERROR_H */