diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/include/netdb.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/strace.h | 1 | ||||
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b6cc548..2e3649f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2002-06-10 Christopher Faylor <cgf@redhat.com> + * include/sys/strace.h (strace): Avoid use of constructor. + +2002-06-10 Christopher Faylor <cgf@redhat.com> + * dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before running global ctors. * wincap.h (wincap): Eliminate constructor. Default is to zero memory, diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h index f49a943..ead90b5 100644 --- a/winsup/cygwin/include/netdb.h +++ b/winsup/cygwin/include/netdb.h @@ -71,7 +71,7 @@ extern "C" { /* Different from the linux versions - note the shorts.. */ struct hostent { - const char *h_name; /* official name of host */ + char *h_name; /* official name of host */ char **h_aliases; /* alias list */ short h_addrtype; /* host address type */ short h_length; /* length of address */ diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h index 955d77a..b43ab88 100644 --- a/winsup/cygwin/include/sys/strace.h +++ b/winsup/cygwin/include/sys/strace.h @@ -44,7 +44,6 @@ public: int lmicrosec; int execing; int inited; - strace() : version(1) {} void hello (); void prntf (unsigned, const char *func, const char *, ...) /*__attribute__ ((regparm(3)))*/; void vprntf (unsigned, const char *func, const char *, va_list ap) /*__attribute__ ((regparm(3)))*/; diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 7c2d2b5..32e9303 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1123,7 +1123,7 @@ cygwin_gethostbyname (const char *name) tmp_addr[1] = b; tmp_addr[2] = c; tmp_addr[3] = d; - tmp_addr_list[0] = (char *)tmp_addr; + tmp_addr_list[0] = (char *) tmp_addr; tmp.h_name = name; tmp.h_aliases = tmp_aliases; tmp.h_addrtype = 2; |