From: root Date: Fri, 12 Nov 2004 12:43:27 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=633c6d980ab934b026eb4b2f4efa4521033a0a74;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/iom.h b/src/iom.h index 6c9702c7..e5d37f0a 100644 --- a/src/iom.h +++ b/src/iom.h @@ -1,5 +1,5 @@ /* - iom.h -- generic I/O multiplexor + iom.h -- generic I/O multiplexer Copyright (C) 2003, 2004 Marc Lehmann This program is free software; you can redistribute it and/or modify @@ -66,17 +66,13 @@ struct sig_watcher; template struct io_manager_vec : vector { -#if IOM_CHECK - bool activity; -#endif - void erase_unordered (unsigned int pos) { watcher *w = (*this)[this->size () - 1]; this->pop_back (); - if (this->size ()) - if ((*this)[pos] = w) + if (!this->empty ()) + if (((*this)[pos] = w)) // '=' is correct! w->active = pos + 1; } };