summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 6b32cb6c..48c26097 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
openlog("gpsdctl", 0, LOG_DAEMON);
if (argc != 3) {
(void)syslog(LOG_ERR, "requires action and argument (%d)", argc);
- exit(1);
+ exit(EXIT_FAILURE);
} else {
/*@-observertrans@*/
char *sockenv = getenv("GPSD_SOCKET");
@@ -102,9 +102,9 @@ int main(int argc, char *argv[])
/* coverity[string_size] */
if (gpsd_control(argv[1], argv[2]) < 0)
- exit(1);
+ exit(EXIT_FAILURE);
else
- exit(0);
+ exit(EXIT_SUCCESS);
/*@+observertrans@*/
}
}