]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/sys/strace.h (strace): Avoid use of constructor.
authorChristopher Faylor <me@cgf.cx>
Mon, 10 Jun 2002 19:58:21 +0000 (19:58 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 10 Jun 2002 19:58:21 +0000 (19:58 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/include/netdb.h
winsup/cygwin/include/sys/strace.h
winsup/cygwin/net.cc

index b6cc5485dd38613c2a153f6cc39a834e002b6618..2e3649f79aebb01325c4a4c5e3efdefa706c9a9f 100644 (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
index f49a943790426a364d0c0ed5362be347a0d121df..ead90b515c069fae9d976b5d6689b076d1132c0e 100644 (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 */
index 955d77a1e2c0cb5eefdc8d9987a8e4a10e52e3b5..b43ab886f9f33d5466b0e04505f4263a510dd1f1 100644 (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)))*/;
index 7c2d2b5ca7852fbcf3fc147b763cad42f8ddaabd..32e930392c8cd715ea7c4f125593b841234e90a2 100644 (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;
This page took 0.992893 seconds and 5 git commands to generate.