chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70fcff3
)
execute: get rid of gcc warning
author
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 16:37:36 +0000
(18:37 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 16:37:36 +0000
(18:37 +0200)
execute.c
patch
|
blob
|
history
diff --git
a/execute.c
b/execute.c
index 4e01e9ad69be1c08dbe6cd2c14edde70cf743c62..5264b5009e73c919162d06c6e614e637f17f0337 100644
(file)
--- a/
execute.c
+++ b/
execute.c
@@
-1357,7
+1357,11
@@
int exec_command_set(ExecCommand *c, const char *path, ...) {
}
const char* exit_status_to_string(ExitStatus status) {
- switch (status) {
+
+ /* We cast to int here, so that -Wenum doesn't complain that
+ * EXIT_SUCCESS/EXIT_FAILURE aren't in the enum */
+
+ switch ((int) status) {
case EXIT_SUCCESS:
return "SUCCESS";