]> git.pld-linux.org Git - packages/dhcp_probe.git/blame - 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
CommitLineData
ade5218c
JB
1Debian patch used original code for 32-bit and sizeof(struct ifreq) for 64-bit builds,
2but the latter is exactly what Linux kernel does everywhere.
0d9e0091
JR
3diff -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
ade5218c 6@@ -118,7 +118,7 @@
0d9e0091
JR
7 #endif /* not STRUCT_SOCKADDR_HAS_SA_LEN */
8
9 /* increment ptr to next interface for next time through the loop */
ade5218c
JB
10- ptr += sizeof(ifr->ifr_name) + len;
11+ ptr += sizeof(struct ifreq);
0d9e0091
JR
12
13 if (strcmp(ifname, ifr->ifr_name) != 0 ) /* is this the interface we're looking for? */
14 continue;
This page took 0.165415 seconds and 4 git commands to generate.