Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-10 23:58:21 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-10 23:58:21 +0400
commitb01cbd5de293ab190b64951790887c6705a8188e (patch)
treed758940163a844c045f5eb417cb0f9ce6c159882
parentfe4283af7ad3e47321d9a7b725c343629dc7d90f (diff)
* include/sys/strace.h (strace): Avoid use of constructor.
-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 b6cc5485d..2e3649f79 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 f49a94379..ead90b515 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 955d77a1e..b43ab886f 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 7c2d2b5ca..32e930392 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;