]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/basic/PAM/basic_pam_auth.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / auth / basic / PAM / basic_pam_auth.cc
index ea9d517234df4480350d96590d04188350363972..19b99d1f5ed21819dd91bce3e95766a5f40a2cf5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -197,14 +197,14 @@ main(int argc, char *argv[])
         default:
             fprintf(stderr, "FATAL: Unknown getopt value '%c'\n", ch);
             usage(argv[0]);
-            exit(1);
+            exit(EXIT_FAILURE);
         }
     }
 start:
     if (optind < argc) {
         fprintf(stderr, "FATAL: Unknown option '%s'\n", argv[optind]);
         usage(argv[0]);
-        exit(1);
+        exit(EXIT_FAILURE);
     }
 
     while (fgets(buf, HELPER_INPUT_BUFFER, stdin)) {
@@ -308,6 +308,6 @@ error:
             debug("ERROR: failed to release PAM authenticator\n");
         }
     }
-    return 0;
+    return EXIT_SUCCESS;
 }