aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_proc_stat.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
commit7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df (patch)
treec9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /plugin_proc_stat.c
parente4626159694ea6774386faa2f0d2fb517de1eb8b (diff)
downloadlcd4linux-7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df.tar.gz
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_proc_stat.c')
-rw-r--r--plugin_proc_stat.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugin_proc_stat.c b/plugin_proc_stat.c
index 6c20755..b55c22b 100644
--- a/plugin_proc_stat.c
+++ b/plugin_proc_stat.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_proc_stat.c,v 1.20 2004/06/17 06:23:43 reinelt Exp $
+/* $Id: plugin_proc_stat.c,v 1.21 2004/06/20 10:09:56 reinelt Exp $
*
* plugin for /proc/stat parsing
*
@@ -23,6 +23,10 @@
*
*
* $Log: plugin_proc_stat.c,v $
+ * Revision 1.21 2004/06/20 10:09:56 reinelt
+ *
+ * 'const'ified the whole source
+ *
* Revision 1.20 2004/06/17 06:23:43 reinelt
*
* hash handling rewritten to solve performance issues
@@ -131,13 +135,13 @@ static HASH Stat;
static FILE *stream = NULL;
-static void hash_put1 (char *key1, char *val)
+static void hash_put1 (const char *key1, const char *val)
{
hash_put_delta (&Stat, key1, val);
}
-static void hash_put2 (char *key1, char *key2, char *val)
+static void hash_put2 (const char *key1, const char *key2, const char *val)
{
char key[32];
@@ -146,7 +150,7 @@ static void hash_put2 (char *key1, char *key2, char *val)
}
-static void hash_put3 (char *key1, char *key2, char *key3, char *val)
+static void hash_put3 (const char *key1, const char *key2, const char *key3, const char *val)
{
char key[32];
@@ -276,7 +280,7 @@ static int parse_proc_stat (void)
}
-static void my_proc_stat (RESULT *result, int argc, RESULT *argv[])
+static void my_proc_stat (RESULT *result, const int argc, RESULT *argv[])
{
char *string;
double number;