From: wessels <> Date: Sat, 25 Oct 1997 22:49:06 +0000 (+0000) Subject: remove comments about unknow 'tmp_error_buf' size X-Git-Tag: SQUID_3_0_PRE1~4689 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7557adc85f6bfa45ae6d4b800bc01263648ef9e;p=thirdparty%2Fsquid.git remove comments about unknow 'tmp_error_buf' size --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 23bf45de0a..eab245442f 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -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); diff --git a/src/tools.cc b/src/tools.cc index dedec11f23..124f77d4a4 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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);