aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-10 19:58:21 +0000
committerChristopher Faylor <me@cgf.cx>2002-06-10 19:58:21 +0000
commitb01cbd5de293ab190b64951790887c6705a8188e (patch)
treed758940163a844c045f5eb417cb0f9ce6c159882 /winsup/cygwin
parentfe4283af7ad3e47321d9a7b725c343629dc7d90f (diff)
downloadnewlib-b01cbd5de293ab190b64951790887c6705a8188e.zip
newlib-b01cbd5de293ab190b64951790887c6705a8188e.tar.gz
newlib-b01cbd5de293ab190b64951790887c6705a8188e.tar.bz2
* include/sys/strace.h (strace): Avoid use of constructor.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/netdb.h2
-rw-r--r--winsup/cygwin/include/sys/strace.h1
-rw-r--r--winsup/cygwin/net.cc2
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;