summaryrefslogtreecommitdiff
path: root/cgps.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 /cgps.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 'cgps.c')
-rw-r--r--cgps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgps.c b/cgps.c
index 4b358f9e..5596fa7c 100644
--- a/cgps.c
+++ b/cgps.c
@@ -167,7 +167,7 @@ static void die(int sig)
}
/* Bye! */
- exit(0);
+ exit(EXIT_SUCCESS);
}
static enum deg_str_type deg_type = deg_dd;
@@ -672,7 +672,7 @@ static void usage(char *prog)
" Valid only for USA (Lower 48 + AK) and Western Europe.\n",
prog);
- exit(1);
+ exit(EXIT_FAILURE);
}
/*
@@ -755,7 +755,7 @@ int main(int argc, char *argv[])
case 'V':
(void)fprintf(stderr, "cgps: %s (revision %s)\n",
VERSION, REVISION);
- exit(0);
+ exit(EXIT_SUCCESS);
case 'l':
switch (optarg[0]) {
case 'd':