[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore/network
From:       Thiago Macieira <thiago () kde ! org>
Date:       2005-02-18 10:55:25
Message-ID: 20050218105525.92E571D2F2 () office ! kde ! org
[Download RAW message or body]

CVS commit by thiago: 

Ugly C cast necessary because some platforms define their connect(2)
routines to take a non-const second argument.

BUG:85793


  M +1 -1      syssocket.h   1.2


--- kdelibs/kdecore/network/syssocket.h  #1.1:1.2
@@ -68,5 +68,5 @@ namespace {
   inline int kde_connect(int fd, const struct sockaddr* sa, socklen_t len)
   {
-    return ::connect(fd, sa, len);
+    return ::connect(fd, (struct sockaddr*)sa, len);
   }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic