From: Nicolas Thill Date: Fri, 14 Oct 2011 10:56:36 +0000 (+0000) Subject: [backfire/packages] lcd4linux: add fix for 'log2l/log2f' issue (closes: #8897) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=945c783a25f7d024c57c42120d415537a62bb3ce [backfire/packages] lcd4linux: add fix for 'log2l/log2f' issue (closes: #8897) SVN-Revision: 28452 --- diff --git a/utils/lcd4linux/patches/170-log2f.patch b/utils/lcd4linux/patches/170-log2f.patch new file mode 100644 index 0000000000..8f6d8619da --- /dev/null +++ b/utils/lcd4linux/patches/170-log2f.patch @@ -0,0 +1,11 @@ +--- 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), "/?");