]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - net-tools/patches/net-tools-1.60-IA64.patch
json-glib: New package.
[people/ms/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-IA64.patch
1 diff -up net-tools-1.60/ifconfig.c.IA64 net-tools-1.60/ifconfig.c
2 --- net-tools-1.60/ifconfig.c.IA64 2010-01-02 11:35:39.000000000 +0100
3 +++ net-tools-1.60/ifconfig.c 2010-01-02 11:35:39.000000000 +0100
4 @@ -894,7 +894,8 @@ int main(int argc, char **argv)
5 continue;
6 }
7
8 - memcpy(&ip, &sin.sin_addr.s_addr, sizeof(unsigned long));
9 + memset(&ip, 0, sizeof(unsigned long));
10 + memcpy(&ip, &sin.sin_addr.s_addr, sizeof(sin.sin_addr.s_addr));
11
12 if (get_nmbc_parent(ifr.ifr_name, &nm, &bc) < 0) {
13 fprintf(stderr, _("Interface %s not initialized\n"),
14 diff -up net-tools-1.60/lib/interface.c.IA64 net-tools-1.60/lib/interface.c
15 --- net-tools-1.60/lib/interface.c.IA64 2010-01-02 11:35:39.000000000 +0100
16 +++ net-tools-1.60/lib/interface.c 2010-01-02 12:03:05.000000000 +0100
17 @@ -491,14 +491,14 @@ int if_fetch(struct interface *ife)
18 if (ioctl(skfd, SIOCGOUTFILL, &ifr) < 0)
19 ife->outfill = 0;
20 else
21 - ife->outfill = (unsigned int) ifr.ifr_data;
22 + ife->outfill = (unsigned long) ifr.ifr_data;
23 #endif
24 #ifdef SIOCGKEEPALIVE
25 strcpy(ifr.ifr_name, ifname);
26 if (ioctl(skfd, SIOCGKEEPALIVE, &ifr) < 0)
27 ife->keepalive = 0;
28 else
29 - ife->keepalive = (unsigned int) ifr.ifr_data;
30 + ife->keepalive = (unsigned long) ifr.ifr_data;
31 #endif
32 }
33 #endif