From 2240d9ca9f1b367ef985eef8a3a028936ac71f56 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 7 Sep 2012 06:02:53 -0400 Subject: Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE}) Note there are some exit(2) instances we bneed to decide what to do with. --- gpsdctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gpsdctl.c') 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@*/ } } -- cgit v1.2.1