* include/sys/strace.h (strace): Avoid use of constructor.

This commit is contained in:
Christopher Faylor 2002-06-10 19:58:21 +00:00
parent fe4283af7a
commit b01cbd5de2
4 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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 */

View File

@ -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)))*/;

View File

@ -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;