]> jfr.im git - solanum.git/blobdiff - authd/authd.c
authd: be more anal about errors
[solanum.git] / authd / authd.c
index 3846e209e89fa6fe3fec45d9fb3e1d9926d941ea..bb87863f980eb5d9616d145fed28d48a3549c932 100644 (file)
@@ -147,7 +147,7 @@ parse_request(rb_helper *helper)
 static void
 error_cb(rb_helper *helper)
 {
-       exit(1);
+       exit(EX_ERROR);
 }
 
 #ifndef _WIN32
@@ -196,7 +196,7 @@ main(int argc, char *argv[])
        if(authd_helper == NULL)
        {
                fprintf(stderr, "authd is not meant to be invoked by end users\n");
-               exit(1);
+               exit(EX_ERROR);
        }
 
        rb_set_time();