Flipped numerical values of expired_t::YES and NO, fixed use of (!expired), which does not compile on GCC 4.7.2.