aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_netinfo.c
diff options
context:
space:
mode:
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-11-20 20:22:05 +0000
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-11-20 20:22:05 +0000
commit20e4961f9eb3ea712a4d101d5984a6e0e68a23bd (patch)
treefa9ff8ccfcdcd2b207cf41bf6492652c22437f72 /plugin_netinfo.c
parent4447e1d46ca5cdb1839c9ece0426fd26db1b2817 (diff)
downloadlcd4linux-20e4961f9eb3ea712a4d101d5984a6e0e68a23bd.tar.gz
started commenting the timer code
I'm not done yet, but my system is currently very unstable, and I don't want the changes to get lost... :( git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1134 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_netinfo.c')
-rw-r--r--plugin_netinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin_netinfo.c b/plugin_netinfo.c
index 0421954..34f694d 100644
--- a/plugin_netinfo.c
+++ b/plugin_netinfo.c
@@ -263,11 +263,11 @@ static void my_netmask_short(RESULT * result, RESULT * arg1)
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));
- qprintf(value, sizeof(value), "/%d", netlen);
+ logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
+ netlen = (int) rint(log2l(logval) / log2l(2.0));
+ qprintf(value, sizeof(value), "/%d", netlen);
} else {
- qprintf(value, sizeof(value), "/?");
+ qprintf(value, sizeof(value), "/?");
}
SetResult(&result, R_STRING, value);