aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_ppp.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 09:27:21 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 09:27:21 +0000
commit1338a264d57ad5f74ce6f8283966020a8e978d2e (patch)
treeb14a2a596dd615ae17880b7007d6b2b78191af94 /plugin_ppp.c
parent55abb63f11967a147d26e4654cbbd7ab3f01a558 (diff)
downloadlcd4linux-1338a264d57ad5f74ce6f8283966020a8e978d2e.tar.gz
[lcd4linux @ 2004-06-26 09:27:20 by reinelt]
added '-W' to CFLAGS changed all C++ comments to C ones ('//' => '/* */') cleaned up a lot of signed/unsigned mistakes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@480 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_ppp.c')
-rw-r--r--plugin_ppp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugin_ppp.c b/plugin_ppp.c
index e77ed74..e531d90 100644
--- a/plugin_ppp.c
+++ b/plugin_ppp.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_ppp.c,v 1.6 2004/06/17 06:23:43 reinelt Exp $
+/* $Id: plugin_ppp.c,v 1.7 2004/06/26 09:27:21 reinelt Exp $
*
* plugin for ppp throughput
*
@@ -23,6 +23,12 @@
*
*
* $Log: plugin_ppp.c,v $
+ * Revision 1.7 2004/06/26 09:27:21 reinelt
+ *
+ * added '-W' to CFLAGS
+ * changed all C++ comments to C ones ('//' => '/* */')
+ * cleaned up a lot of signed/unsigned mistakes
+ *
* Revision 1.6 2004/06/17 06:23:43 reinelt
*
* hash handling rewritten to solve performance issues
@@ -92,11 +98,11 @@ static int get_ppp_stats (void)
struct ifpppstatsreq req;
char key[16], val[16];
- // reread every 10 msec only
+ /* reread every 10 msec only */
age=hash_age(&PPP, NULL);
if (age>0 && age<=10) return 0;
- // open socket only once
+ /* open socket only once */
if (fd==-2) {
fd = socket(AF_INET, SOCK_DGRAM, 0);
if (fd==-1) {