File curl-7.15.5-aliasing.patch of Package yup

--- lib/connect.c
+++ lib/connect.c
@@ -249,7 +249,7 @@
    *************************************************************/
   if (strlen(data->set.device)<255) {
     struct Curl_dns_entry *h=NULL;
-    size_t size;
+    socklen_t size;
     char myhost[256] = "";
     in_addr_t in;
     int rc;
@@ -343,8 +343,7 @@
           bindworked = TRUE;
 
           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/ldap.c
+++ lib/ldap.c
@@ -192,11 +192,7 @@
 
 #if defined(HAVE_DLOPEN) || defined(HAVE_LIBDL)
   if (libldap) {
-    /* This typecast magic below was brought by Joe Halpin. In ISO C, you
-     * cannot typecast a data pointer to a function pointer, but that's
-     * exactly what we need to do here to avoid compiler warnings on picky
-     * compilers! */
-    *(void**) (&func) = dlsym(libldap, name);
+    func = (dynafunc) dlsym(libldap, name);
   }
 #elif defined(WIN32)
   if (libldap) {
openSUSE Build Service is sponsored by