]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
remove comments about unknow 'tmp_error_buf' size
authorwessels <>
Sat, 25 Oct 1997 22:49:06 +0000 (22:49 +0000)
committerwessels <>
Sat, 25 Oct 1997 22:49:06 +0000 (22:49 +0000)
src/store_dir.cc
src/tools.cc

index 23bf45de0aa2288cdd694939c907c18e00b9edc8..eab245442f96499b80192fcece64152fe3a6d226 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.32 1997/10/23 20:47:53 wessels Exp $
+ * $Id: store_dir.cc,v 1.33 1997/10/25 16:49:06 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -82,8 +82,6 @@ storeVerifyOrCreateDir(const char *path)
     safeunlink(path, 1);
     if (mkdir(path, 0777) < 0) {
        if (errno != EEXIST) {
-           /* NOTE: couldn't figure size of tmp_error_buf, assumed
-            * ERROR_BUF_SZ */
            snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "Failed to create swap directory %s: %s",
                path,
@@ -93,8 +91,6 @@ storeVerifyOrCreateDir(const char *path)
     }
     debug(47, 1) ("Created directory %s\n", path);
     if (stat(path, &sb) < 0 || !S_ISDIR(sb.st_mode)) {
-       /* NOTE: couldn't figure size of tmp_error_buf, assumed
-        * ERROR_BUF_SZ */
        snprintf(tmp_error_buf, ERROR_BUF_SZ,
            "Failed to create directory %s: %s", path, xstrerror());
        fatal(tmp_error_buf);
index dedec11f234eece8d92880c9a8574448a9c76938..124f77d4a4d6d1c4d048fe8f38cd75f65b027469 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.124 1997/10/21 03:12:07 wessels Exp $
+ * $Id: tools.cc,v 1.125 1997/10/25 16:49:06 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -658,8 +658,6 @@ setMaxFD(void)
        if (rl.rlim_cur > rl.rlim_max)
            Squid_MaxFD = rl.rlim_cur = rl.rlim_max;
        if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
-           /* NOTE: couldn't figure size of tmp_error_buf, thus 
-            * assuming ERROR_BUF_SZ */
            snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "setrlimit: RLIMIT_NOFILE: %s", xstrerror());
            fatal_dump(tmp_error_buf);
@@ -673,8 +671,6 @@ setMaxFD(void)
        if (rl.rlim_cur > rl.rlim_max)
            Squid_MaxFD = rl.rlim_cur = rl.rlim_max;
        if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
-           /* NOTE: couldn't figure size of tmp_error_buf, thus
-            * assuming ERROR_BUF_SZ  */
            snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "setrlimit: RLIMIT_OFILE: %s", xstrerror());
            fatal_dump(tmp_error_buf);
@@ -691,8 +687,6 @@ setMaxFD(void)
     } else if (rl.rlim_max > rl.rlim_cur) {
        rl.rlim_cur = rl.rlim_max;      /* set it to the max */
        if (setrlimit(RLIMIT_DATA, &rl) < 0) {
-           /* NOTE: couldn't figure size of tmp_error_buf, thus d
-            * assuming ERROR_BUF_SZ  */
            snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "setrlimit: RLIMIT_DATA: %s", xstrerror());
            fatal_dump(tmp_error_buf);
@@ -705,8 +699,6 @@ setMaxFD(void)
     } else if (rl.rlim_max > rl.rlim_cur) {
        rl.rlim_cur = rl.rlim_max;      /* set it to the max */
        if (setrlimit(RLIMIT_VMEM, &rl) < 0) {
-           /* NOTE: couldn't figure size of tmp_error_buf, thus 
-            * assuming ERROR_BUF_SZ  */
            snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "setrlimit: RLIMIT_VMEM: %s", xstrerror());
            fatal_dump(tmp_error_buf);