]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1530: Make "foo" a more intuitive error message by just using
authorhno <>
Thu, 11 May 2006 02:22:11 +0000 (02:22 +0000)
committerhno <>
Thu, 11 May 2006 02:22:11 +0000 (02:22 +0000)
assert instead.

src/comm.cc

index e3c31c46ba66bac4c043f9482bc6288271f6751b..f83432f280b380fe41a86dcaae53f1600b0a0b1e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.415 2006/05/08 23:38:33 robertc Exp $
+ * $Id: comm.cc,v 1.416 2006/05/10 20:22:11 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -2488,9 +2488,7 @@ commMarkHalfClosed(int fd) {
 }
 
 int commIsHalfClosed(int fd) {
-    if (fdc_table[fd].active != 1) {
-        fatal("foo");
-    }
+    assert (fdc_table[fd].active);
 
     return fdc_table[fd].half_closed;
 }