summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-07 06:05:42 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 06:05:42 -0400
commit2e0f4f819440eb446eb4a2f352a295adb6672bcf (patch)
tree52be8f4df16926b661dd6719a6e0b944180aa867 /lcdgps.c
parent2240d9ca9f1b367ef985eef8a3a028936ac71f56 (diff)
downloadgpsd-2e0f4f819440eb446eb4a2f352a295adb6672bcf.tar.gz
Replace exit(2) with exit(EXIT_FAILURE). None of these were documented.
This is a separate commit so we can revert it someday if making the distinction again comes to seem more important than struct mingw portability. All regression tests pass.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcdgps.c b/lcdgps.c
index f90ce122..fdbd0938 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -359,7 +359,7 @@ int main(int argc, char *argv[])
(void)fprintf( stderr,
"lcdgps: no gpsd running or network error: %d, %s\n",
errno, gps_errstr(errno));
- exit(2);
+ exit(EXIT_FAILURE);
}
/* Connect to LCDd */
@@ -411,7 +411,7 @@ int main(int argc, char *argv[])
for (;;) { /* heart of the client */
if (!gps_waiting(&gpsdata, 50000000)) {
fprintf( stderr, "lcdgps: error while waiting\n");
- exit(2);
+ exit(EXIT_FAILURE);
} else {
(void)gps_read(&gpsdata);
update_lcd(&gpsdata);