diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:02:53 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:02:53 -0400 |
commit | 2240d9ca9f1b367ef985eef8a3a028936ac71f56 (patch) | |
tree | 3c9543b96e5eb24b35836942db7c508fc239a8da /gpsdctl.c | |
parent | c6e26279e448cb50d26aa308a1473a1d192b192a (diff) | |
download | gpsd-2240d9ca9f1b367ef985eef8a3a028936ac71f56.tar.gz |
Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})
Note there are some exit(2) instances we bneed to decide what to do with.
Diffstat (limited to 'gpsdctl.c')
-rw-r--r-- | gpsdctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -89,7 +89,7 @@ int main(int argc, char *argv[]) openlog("gpsdctl", 0, LOG_DAEMON); if (argc != 3) { (void)syslog(LOG_ERR, "requires action and argument (%d)", argc); - exit(1); + exit(EXIT_FAILURE); } else { /*@-observertrans@*/ char *sockenv = getenv("GPSD_SOCKET"); @@ -102,9 +102,9 @@ int main(int argc, char *argv[]) /* coverity[string_size] */ if (gpsd_control(argv[1], argv[2]) < 0) - exit(1); + exit(EXIT_FAILURE); else - exit(0); + exit(EXIT_SUCCESS); /*@+observertrans@*/ } } |