From: hno <> Date: Thu, 11 May 2006 02:22:11 +0000 (+0000) Subject: Bug #1530: Make "foo" a more intuitive error message by just using X-Git-Tag: SQUID_3_0_PRE4~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e85e41a2a1150078236a1ac38fdf2ebf14740e87;p=thirdparty%2Fsquid.git Bug #1530: Make "foo" a more intuitive error message by just using assert instead. --- diff --git a/src/comm.cc b/src/comm.cc index e3c31c46ba..f83432f280 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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; }