* select.cc (select_stuff::test_and_set): Remove workaround and use proper
constructor.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2012-12-18  Christopher Faylor  <me.cygwin2012@cgf.cx> | ||||||
|  |  | ||||||
|  | 	* select.cc (select_stuff::test_and_set): Remove workaround and use | ||||||
|  | 	proper constructor. | ||||||
|  |  | ||||||
| 2012-12-18  Christopher Faylor  <me.cygwin2012@cgf.cx> | 2012-12-18  Christopher Faylor  <me.cygwin2012@cgf.cx> | ||||||
|  |  | ||||||
| 	* select.cc (select_stuff::test_and_set): Work around problem of new() | 	* select.cc (select_stuff::test_and_set): Work around problem of new() | ||||||
|   | |||||||
| @@ -295,7 +295,7 @@ select_stuff::test_and_set (int i, fd_set *readfds, fd_set *writefds, | |||||||
|       && ! UNIX_FD_ISSET (i, exceptfds)) |       && ! UNIX_FD_ISSET (i, exceptfds)) | ||||||
|     return true; |     return true; | ||||||
|  |  | ||||||
|   select_record *s = (select_record *) calloc (1, sizeof (select_record)); |   select_record *s = new select_record (0); | ||||||
|   if (!s) |   if (!s) | ||||||
|     return false; |     return false; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user