Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
net-tools
net-tools-1.60-strictaliasing.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File net-tools-1.60-strictaliasing.diff of Package net-tools
Index: net-tools-1.60/lib/masq_info.c =================================================================== --- net-tools-1.60.orig/lib/masq_info.c +++ net-tools-1.60/lib/masq_info.c @@ -98,16 +98,16 @@ static int read_masqinfo(FILE * f, struc if (has_pdelta) { if ((n = fscanf(f, " %s %lX:%hX %lX:%hX %hX %lX %hd %hd %lu", buf, - (unsigned long *) &ms->src.sin_addr.s_addr, &ms->sport, - (unsigned long *) &ms->dst.sin_addr.s_addr, &ms->dport, + &ms->src.sin_addr.s_addr, &ms->sport, + &ms->dst.sin_addr.s_addr, &ms->dport, &ms->mport, &ms->initseq, &ms->delta, &ms->pdelta, &ms->expires)) == -1) return nread; } else { if ((n = fscanf(f, " %s %lX:%hX %lX:%hX %hX %lX %hd %lu", buf, - (unsigned long *) &ms->src.sin_addr.s_addr, &ms->sport, - (unsigned long *) &ms->dst.sin_addr.s_addr, &ms->dport, + &ms->src.sin_addr.s_addr, &ms->sport, + &ms->dst.sin_addr.s_addr, &ms->dport, &ms->mport, &ms->initseq, &ms->delta, &ms->expires)) == -1) return nread; Index: net-tools-1.60/plipconfig.c =================================================================== --- net-tools-1.60.orig/plipconfig.c +++ net-tools-1.60/plipconfig.c @@ -108,7 +108,7 @@ int main(int argc, char **argv) spp = argv; strncpy(ifr.ifr_name, *spp++, IFNAMSIZ); - plip=(struct plipconf *)&ifr.ifr_data; + plip=&ifr.ifr_data; plip->pcmd = PLIP_GET_TIMEOUT; /* get current settings for device */ if (ioctl(skfd, SIOCDEVPLIP, &ifr) < 0) {
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