Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:10.3:Update
libcurl3
curl-7.15.5-strict-aliasing.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curl-7.15.5-strict-aliasing.patch of Package libcurl3
--- lib/ldap.c +++ lib/ldap.c @@ -197,7 +197,10 @@ static dynafunc DynaGetFunction(const ch * 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); + /* mmarek@suse.cz: I guess we can live with the void* -> funcptr conversion + * on systems where dlsym is supported... anyway less harm that risking + * strict aliasing bugs... */ + func = dlsym(libldap, name); } #elif defined(WIN32) if (libldap) { --- lib/connect.c +++ lib/connect.c @@ -382,11 +382,10 @@ static CURLcode bindlocal(struct connect if( bind(sockfd, sock, socksize) >= 0) { /* we succeeded to bind */ struct Curl_sockaddr_storage add; - size_t size; + socklen_t size; 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; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor