]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Fri, 13 Oct 2000 14:45:07 +0000 (14:45 +0000)
committerwessels <>
Fri, 13 Oct 2000 14:45:07 +0000 (14:45 +0000)
 - document file_map_bit_reset gotchas.

src/filemap.cc

index fb292a6631a19c9925a9c2a5c537c2993c80aa51..9faa9d56246440b20d8bb39be41cce4a8ffb9a38 100644 (file)
@@ -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)
 {