[Package] lcd4linux: update to r1159. Fixes #8897
[openwrt/svn-archive/archive.git] / utils / lcd4linux / patches / 110-uclibc-logarithm-fix.patch
1 --- a/plugin_netinfo.c
2 +++ b/plugin_netinfo.c
3 @@ -264,7 +264,7 @@
4 sin = get_netmask(arg1);
5 if (NULL != sin) {
6 logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
7 - netlen = (int) rint(log2l(logval) / log2l(2.0));
8 + netlen = (int) rint(log2f(logval) / log2f(2.0));
9 qprintf(value, sizeof(value), "/%d", netlen);
10 } else {
11 qprintf(value, sizeof(value), "/?");