* select.h (select_stuff::select_stuff): Make default constructor always zero

everything while constructor with int arg just zeroes next.
* select.cc (select_stuff::test_and_set): Revert to using default constructor.
This commit is contained in:
Christopher Faylor 2012-12-19 21:15:54 +00:00
parent 63d9f29311
commit 6dadfa5644
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2012-12-19 Christopher Faylor <me.cygwin2012@cgf.cx>
* select.h (select_stuff::select_stuff): Make default constructor
always zero everything while constructor with int arg just zeroes next.
* select.cc (select_stuff::test_and_set): Revert to using default
constructor.
2012-12-19 Christopher Faylor <me.cygwin2012@cgf.cx> 2012-12-19 Christopher Faylor <me.cygwin2012@cgf.cx>
* select.cc (select_stuff::wait): Add windows error number to error message. * select.cc (select_stuff::wait): Add windows error number to error message.

View File

@ -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 = new select_record (0); select_record *s = new select_record;
if (!s) if (!s)
return false; return false;