aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_apm.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_apm.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_apm.c')
-rw-r--r--plugin_apm.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugin_apm.c b/plugin_apm.c
index feebb41..90f558a 100644
--- a/plugin_apm.c
+++ b/plugin_apm.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_apm.c,v 1.2 2004/06/17 06:23:43 reinelt Exp $
+/* $Id: plugin_apm.c,v 1.3 2004/06/26 09:27:21 reinelt Exp $
*
* plugin for APM (battery status)
*
@@ -26,6 +26,12 @@
*
*
* $Log: plugin_apm.c,v $
+ * Revision 1.3 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.2 2004/06/17 06:23:43 reinelt
*
* hash handling rewritten to solve performance issues
@@ -61,7 +67,7 @@
#include "hash.h"
static int fd = -2;
-static HASH APM = { 0, };
+static HASH APM;
/* from /usr/src/linux/arch/i386/kernel/apm.c:
*
@@ -132,7 +138,7 @@ static int parse_proc_apm (void)
char buffer[128], *beg, *end;
int age, i;
- // reread every 10 msec only
+ /* reread every 10 msec only */
age = hash_age (&APM, NULL);
if (age > 0 && age <= 10) return 0;