remove the need for C99 math (closes: #1579)
[openwrt/svn-archive/archive.git] / net / olsrd / patches / 270-olsrd-hna_ip_fix.patch
1 diff -Nur olsrd-0.4.10.orig/src/cfgparser/oparse.c olsrd-0.4.10/src/cfgparser/oparse.c
2 --- olsrd-0.4.10.orig/src/cfgparser/oparse.c 2006-01-01 17:15:57.000000000 +0100
3 +++ olsrd-0.4.10/src/cfgparser/oparse.c 2006-12-01 08:21:39.000000000 +0100
4 @@ -1921,6 +1921,7 @@
5 return -1;
6 }
7 h->netmask.v4 = in.s_addr;
8 + h->net.v4 &= h->netmask.v4;
9 /* Queue */
10 h->next = cnf->hna4_entries;
11 cnf->hna4_entries = h;
12 diff -Nur olsrd-0.4.10.orig/src/cfgparser/oparse.y olsrd-0.4.10/src/cfgparser/oparse.y
13 --- olsrd-0.4.10.orig/src/cfgparser/oparse.y 2005-11-17 05:25:44.000000000 +0100
14 +++ olsrd-0.4.10/src/cfgparser/oparse.y 2006-12-01 08:23:05.000000000 +0100
15 @@ -701,6 +701,7 @@
16 return -1;
17 }
18 h->netmask.v4 = in.s_addr;
19 + h->net.v4 &= h->netmask.v4;
20 /* Queue */
21 h->next = cnf->hna4_entries;
22 cnf->hna4_entries = h;