packages/utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch
juhosg 6a681f394e package/lcd4linux: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-08 16:39:18 +00:00

12 lines
427 B
Diff

--- a/plugin_netinfo.c
+++ b/plugin_netinfo.c
@@ -264,7 +264,7 @@ static void my_netmask_short(RESULT * re
sin = get_netmask(arg1);
if (NULL != sin) {
logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
- netlen = (int) rint(log2l(logval) / log2l(2.0));
+ netlen = (int) rint(log2f(logval) / log2f(2.0));
qprintf(value, sizeof(value), "/%d", netlen);
} else {
qprintf(value, sizeof(value), "/?");