From e85e41a2a1150078236a1ac38fdf2ebf14740e87 Mon Sep 17 00:00:00 2001 From: hno <> Date: Thu, 11 May 2006 02:22:11 +0000 Subject: [PATCH] Bug #1530: Make "foo" a more intuitive error message by just using assert instead. --- src/comm.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.47.2