From 1338a264d57ad5f74ce6f8283966020a8e978d2e Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 26 Jun 2004 09:27:21 +0000 Subject: [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 --- plugin_apm.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'plugin_apm.c') 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; -- cgit v1.2.3