File curl-7.11.0-aliasing.patch of Package compat-libcurl2

--- lib/connect.c
+++ lib/connect.c
@@ -212,7 +212,7 @@
   if (strlen(data->set.device)<255) {
     struct sockaddr_in sa;
     struct Curl_dns_entry *h=NULL;
-    size_t size;
+    socklen_t size;
     char myhost[256] = "";
     in_addr_t in;
     int rc;
@@ -275,8 +275,8 @@
           struct sockaddr_in6 add;
 	
           size = sizeof(add);
-          if(getsockname(sockfd, (struct sockaddr *) &add,
-                         (socklen_t *)&size)<0) {
+
+          if(getsockname(sockfd, (struct sockaddr *) &add, &size)<0) {
             failf(data, "getsockname() failed");
             return CURLE_HTTP_PORT_FAILED;
           }
@@ -293,8 +293,7 @@
           struct sockaddr_in add;
 	
           size = sizeof(add);
-          if(getsockname(sockfd, (struct sockaddr *) &add,
-                         (socklen_t *)&size)<0) {
+          if(getsockname(sockfd, (struct sockaddr *) &add, &size)<0) {
             failf(data, "getsockname() failed");
             return CURLE_HTTP_PORT_FAILED;
           }
--- lib/ftp.c
+++ lib/ftp.c
@@ -155,11 +155,11 @@
     /* we have received data here */
     {
       int s;
-      size_t size = sizeof(struct sockaddr_in);
+      socklen_t size = sizeof(struct sockaddr_in);
       struct sockaddr_in add;
 
-      getsockname(sock, (struct sockaddr *) &add, (socklen_t *)&size);
-      s=accept(sock, (struct sockaddr *) &add, (socklen_t *)&size);
+      getsockname(sock, (struct sockaddr *) &add, &size);
+      s=accept(sock, (struct sockaddr *) &add, &size);
 
       sclose(sock); /* close the first socket */