ObjFW  Check-in [1f02ada35e]

Overview
Comment:Fix a typo in OFStreamObserver, affecting it only when using select().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1f02ada35eb67c078ea4347d624de6c1da729bbe168b0469fd9585560bb01e58
User & Date: js on 2010-10-07 21:25:09
Other Links: manifest | tags
Context
2010-10-10
12:01
Better storing of argc and argv. check-in: f282aaa672 user: js tags: trunk
2010-10-07
21:25
Fix a typo in OFStreamObserver, affecting it only when using select(). check-in: 1f02ada35e user: js tags: trunk
2010-10-06
19:37
Add missing #ifdef OF_HAVE_BLOCKS. check-in: 2bf66ace60 user: js tags: trunk
Changes

Modified src/OFStreamObserver.m from [2babecb315] to [18e0a8da0a].

292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

	cArray = [writeStreams cArray];
	count = [writeStreams count];

	for (i = 0; i < count; i++) {
		int fd = [cArray[i] fileDescriptor];

		if (FD_ISSET(fd, &readfds_))
			[delegate streamDidBecomeReadyForWriting: cArray[i]];
	}
#endif

	[pool release];

	return YES;







|







292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

	cArray = [writeStreams cArray];
	count = [writeStreams count];

	for (i = 0; i < count; i++) {
		int fd = [cArray[i] fileDescriptor];

		if (FD_ISSET(fd, &writefds_))
			[delegate streamDidBecomeReadyForWriting: cArray[i]];
	}
#endif

	[pool release];

	return YES;