summaryrefslogtreecommitdiff
path: root/test_packet.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 /test_packet.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 'test_packet.c')
-rw-r--r--test_packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_packet.c b/test_packet.c
index ad0a61e4..09ea5093 100644
--- a/test_packet.c
+++ b/test_packet.c
@@ -329,7 +329,7 @@ int main(int argc, char *argv[])
mp = singletests + atoi(optarg) - 1;
(void)fwrite(mp->test, mp->testlen, sizeof(char), stdout);
(void)fflush(stdout);
- exit(0);
+ exit(EXIT_SUCCESS);
case 't':
singletest = atoi(optarg);
break;
@@ -350,5 +350,5 @@ int main(int argc, char *argv[])
(void)fputs("=== EOF with buffer nonempty test ===\n", stdout);
runon_test(&runontests[0]);
}
- exit(failcount > 0 ? 1 : 0);
+ exit(failcount > 0 ? EXIT_FAILURE : EXIT_SUCCESS);
}