From: Helmut Grohne Date: Tue, 28 Jul 2009 12:19:14 +0000 (+0200) Subject: use EXIT_* macros instead of numerical values X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=4f9a17ad835697191e33481e9f3bca9cd6e4427e;hp=6ffc0e528db480a35f5024c48b1ba72f712e31c6;p=uzbl-mobile use EXIT_* macros instead of numerical values --- diff --git a/uzbl.c b/uzbl.c index afd1cf3..ccd07e6 100644 --- a/uzbl.c +++ b/uzbl.c @@ -2642,7 +2642,7 @@ initialize(int argc, char *argv[]) { if (uzbl.behave.print_version) { printf("Commit: %s\n", COMMIT); - exit(0); + exit(EXIT_SUCCESS); } /* initialize hash table */ diff --git a/uzblctrl.c b/uzblctrl.c index e768b7f..2547bc7 100644 --- a/uzblctrl.c +++ b/uzblctrl.c @@ -36,7 +36,7 @@ main(int argc, char* argv[]) { if ((s = socket (AF_UNIX, SOCK_STREAM, 0)) == -1) { perror ("socket"); - exit (1); + exit (EXIT_FAILURE); } remote.sun_family = AF_UNIX; @@ -45,13 +45,13 @@ main(int argc, char* argv[]) { if (connect (s, (struct sockaddr *) &remote, len) == -1) { perror ("connect"); - exit (1); + exit (EXIT_FAILURE); } if ((send (s, command, strlen (command), 0) == -1) || (send (s, "\n", 1, 0) == -1)) { perror ("send"); - exit (1); + exit (EXIT_FAILURE); } while ((len = recv (s, &tmp, 1, 0))) {