[hackers] [sinit] Don't use EXIT_{SUCCESS,FAILURE} || sin

From: <git_AT_suckless.org>
Date: Thu, 04 Dec 2014 15:56:23 +0100

commit 20bae3a21d90690fa32355a91d7833ba743a96cd
Author: sin <sin_AT_2f30.org>
Date: Thu Dec 4 14:56:01 2014 +0000

    Don't use EXIT_{SUCCESS,FAILURE}

diff --git a/sinit.c b/sinit.c
index a88f26a..e338f35 100644
--- a/sinit.c
+++ b/sinit.c
_AT_@ -34,7 +34,7 @@ main(void)
         size_t i;
 
         if (getpid() != 1)
- return EXIT_FAILURE;
+ return 1;
         chdir("/");
         sigfillset(&set);
         sigprocmask(SIG_BLOCK, &set, NULL);
_AT_@ -49,7 +49,7 @@ main(void)
                 }
         }
         /* not reachable */
- return EXIT_SUCCESS;
+ return 0;
 }
 
 static void
_AT_@ -84,6 +84,6 @@ spawn(char *const argv[])
                 setsid();
                 execvp(argv[0], argv);
                 perror("execvp");
- _exit(EXIT_FAILURE);
+ _exit(1);
         }
 }
Received on Thu Dec 04 2014 - 15:56:23 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 04 2014 - 16:00:11 CET