summaryrefslogtreecommitdiff
path: root/src/libudev/exit-status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/exit-status.h')
-rw-r--r--src/libudev/exit-status.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libudev/exit-status.h b/src/libudev/exit-status.h
index d3b548fc96..58f734b6f2 100644
--- a/src/libudev/exit-status.h
+++ b/src/libudev/exit-status.h
@@ -22,7 +22,9 @@
***/
#include <stdbool.h>
+#include "macro.h"
#include "set.h"
+
typedef enum ExitStatus {
/* EXIT_SUCCESS defined by libc */
/* EXIT_FAILURE defined by libc */
@@ -82,7 +84,7 @@ typedef struct ExitStatusSet {
Set *signal;
} ExitStatusSet;
-const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level);
+const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) _const_;
bool is_clean_exit(int code, int status, ExitStatusSet *success_status);
bool is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status);