]> git.pld-linux.org Git - packages/dhcp_probe.git/blob - dhcp_probe-guignard-04_linux_32_or_64bits.patch
- guignard-04_linux_32_or_64bits patch replaced by simple change to match Linux kerne...
[packages/dhcp_probe.git] / dhcp_probe-guignard-04_linux_32_or_64bits.patch
1 Debian patch used original code for 32-bit and sizeof(struct ifreq) for 64-bit builds,
2 but the latter is exactly what Linux kernel does everywhere.
3 diff -urNad src/get_myipaddr.c trunk/src/get_myipaddr.c
4 --- src/get_myipaddr.c  2009-09-03 13:10:32.000000000 +0200
5 +++ src/get_myipaddr.c  2009-09-03 13:15:39.671451172 +0200
6 @@ -118,7 +118,7 @@
7  #endif /* not STRUCT_SOCKADDR_HAS_SA_LEN */
8  
9                 /* increment ptr to next interface for next time through the loop */
10 -               ptr += sizeof(ifr->ifr_name) + len;
11 +               ptr += sizeof(struct ifreq);
12  
13                 if (strcmp(ifname, ifr->ifr_name) != 0 )  /* is this the interface we're looking for? */
14                         continue;
This page took 0.080314 seconds and 3 git commands to generate.