mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Use macros for exit values
This commit is contained in:
parent
01617131f1
commit
3ba33321de
4 changed files with 8 additions and 8 deletions
|
|
@ -12,7 +12,7 @@
|
|||
#include "log.h"
|
||||
|
||||
void sway_terminate(void) {
|
||||
exit(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
@ -52,7 +52,7 @@ int main(int argc, char **argv) {
|
|||
#else
|
||||
fprintf(stdout, "version not detected\n");
|
||||
#endif
|
||||
exit(0);
|
||||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue