@@ -60,16 +60,16 @@ - (void)OF_addFileDescriptor: (int)fd withEvents: (short)events { struct pollfd *FDs = [_FDs items]; size_t i, count = [_FDs count]; - BOOL found = NO; + bool found = false; for (i = 0; i < count; i++) { if (FDs[i].fd == fd) { FDs[i].events |= events; - found = YES; + found = true; break; } } if (!found) { @@ -118,21 +118,21 @@ { [self OF_removeFileDescriptor: fd withEvents: POLLOUT]; } -- (BOOL)observeWithTimeout: (double)timeout +- (bool)observeWithTimeout: (double)timeout { void *pool = objc_autoreleasePoolPush(); struct pollfd *FDs; size_t i, nFDs, realEvents = 0; [self OF_processQueue]; if ([self OF_processCache]) { objc_autoreleasePoolPop(pool); - return YES; + return true; } objc_autoreleasePoolPop(pool); FDs = [_FDs items]; @@ -143,11 +143,11 @@ @throw [OFOutOfRangeException exceptionWithClass: [self class]]; #endif if (poll(FDs, (nfds_t)nFDs, (int)(timeout != -1 ? timeout * 1000 : -1)) < 1) - return NO; + return false; for (i = 0; i < nFDs; i++) { pool = objc_autoreleasePoolPush(); if (FDs[i].revents & POLLIN) { @@ -191,10 +191,10 @@ objc_autoreleasePoolPop(pool); } if (realEvents == 0) - return NO; + return false; - return YES; + return true; } @end