From 168b8ddc0301ca5aa8d03144da8e661e0739edce Mon Sep 17 00:00:00 2001 From: cgf Date: Thu, 30 Mar 2000 04:23:11 +0000 Subject: [PATCH] Simplify constructors and initializers for select_record. --- winsup/cygwin/fhandler.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index acecb63df0..ec19d25663 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -781,12 +781,12 @@ struct select_record void (*cleanup) (select_record *me, class select_stuff *stuff); struct select_record *next; - select_record (fhandler_base *in_fh = NULL) {memset (this, 0, sizeof(select_record)); fh = in_fh;} - select_record (int) : fd (0), h (NULL), fh (0), saw_error (0), windows_handle (0), - read_ready (0), write_ready (0), except_ready (0), - read_selected (0), write_selected (0), except_selected (0), - startup (NULL), poll (NULL), verify (NULL), cleanup (NULL), - next (NULL) {} + select_record (fhandler_base *in_fh = NULL) : fd (0), h (NULL), + fh (in_fh), saw_error (0), windows_handle (0), + read_ready (0), write_ready (0), except_ready (0), + read_selected (0), write_selected (0), except_selected (0), + startup (NULL), poll (NULL), verify (NULL), cleanup (NULL), + next (NULL) {} }; class select_stuff -- 2.11.0