From: wessels <> Date: Fri, 13 Oct 2000 14:45:07 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1812 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c8a9574cce1f5b8a5dff831d09610515d809b33d;p=thirdparty%2Fsquid.git DW: - document file_map_bit_reset gotchas. --- diff --git a/src/filemap.cc b/src/filemap.cc index fb292a6631..9faa9d5624 100644 --- a/src/filemap.cc +++ b/src/filemap.cc @@ -1,6 +1,6 @@ /* - * $Id: filemap.cc,v 1.35 2000/04/28 19:06:51 adrian Exp $ + * $Id: filemap.cc,v 1.36 2000/10/13 08:45:07 wessels Exp $ * * DEBUG: section 8 Swap File Bitmap * AUTHOR: Harvest Derived @@ -96,6 +96,12 @@ file_map_bit_set(fileMap * fm, int file_number) return file_number; } +/* + * WARNING: file_map_bit_reset does not perform array bounds + * checking! It assumes that 'file_number' is valid, and that the + * bit is already set. The caller must verify both of those + * conditions by calling file_map_bit_test() first. + */ void file_map_bit_reset(fileMap * fm, int file_number) {