diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:05:42 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 06:05:42 -0400 |
commit | 2e0f4f819440eb446eb4a2f352a295adb6672bcf (patch) | |
tree | 52be8f4df16926b661dd6719a6e0b944180aa867 /lcdgps.c | |
parent | 2240d9ca9f1b367ef985eef8a3a028936ac71f56 (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |