]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http/url_rewriters/LFS/rredir.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / http / url_rewriters / LFS / rredir.cc
index 1c62c659c6f85caf41852a3ffc4dcfe4097b6431..a0d55d5d2eeed3622e450d72fc50280eb74734c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -60,11 +60,11 @@ main()
 
     /* make standard output line buffered */
     if (setvbuf(stdout, NULL, _IOLBF, 0) != 0)
-        return 1;
+        exit(EXIT_FAILURE);
 
     /* speed up the access() calls below */
     if (chdir(ACCESS_LOCAL_DIR) == -1)
-        return 1;
+        exit(EXIT_FAILURE);
 
     /* scan standard input */
     while (fgets(buf, BUFFER_SIZE, stdin) != NULL) {
@@ -105,6 +105,6 @@ dont_redirect:
         (void) printf("\n");
     }
 
-    return 0;
+    return EXIT_SUCCESS;
 }