]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4281: copy-paste typos in src/tools.cc
authorMarcos Mello <marcosfrm@gmail.com>
Tue, 27 Oct 2015 22:47:21 +0000 (15:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 Oct 2015 22:47:21 +0000 (15:47 -0700)
src/tools.cc

index 9d9f7aff9afae7203f05ead7f494c0d8984bff55..e0c7cd74c31253f7761f501c1d7970992f16138f 100644 (file)
@@ -840,7 +840,7 @@ setMaxFD(void)
 #endif
 
     if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
-        debugs(50, DBG_CRITICAL, "setrlimit: RLIMIT_NOFILE: " << xstrerror());
+        debugs(50, DBG_CRITICAL, "getrlimit: RLIMIT_NOFILE: " << xstrerror());
     } else if (Config.max_filedescriptors > 0) {
 #if USE_SELECT || USE_SELECT_WIN32
         /* select() breaks if this gets set too big */
@@ -886,7 +886,7 @@ setSystemLimits(void)
 #endif
 
     if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
-        debugs(50, DBG_CRITICAL, "setrlimit: RLIMIT_NOFILE: " << xstrerror());
+        debugs(50, DBG_CRITICAL, "getrlimit: RLIMIT_NOFILE: " << xstrerror());
     } else {
         rl.rlim_cur = Squid_MaxFD;
         if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {