summaryrefslogtreecommitdiff
path: root/cgps.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 /cgps.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 'cgps.c')
-rw-r--r--cgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgps.c b/cgps.c
index 5596fa7c..c32d1154 100644
--- a/cgps.c
+++ b/cgps.c
@@ -790,7 +790,7 @@ int main(int argc, char *argv[])
(void)fprintf(stderr,
"cgps: no gpsd running or network error: %d, %s\n",
errno, gps_errstr(errno));
- exit(2);
+ exit(EXIT_FAILURE);
}
/* note: we're assuming BSD-style reliable signals here */