summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-07 06:02:53 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 06:02:53 -0400
commit2240d9ca9f1b367ef985eef8a3a028936ac71f56 (patch)
tree3c9543b96e5eb24b35836942db7c508fc239a8da /gpsdctl.c
parentc6e26279e448cb50d26aa308a1473a1d192b192a (diff)
downloadgpsd-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 6b32cb6c..48c26097 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -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@*/
}
}