diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-16 05:04:53 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-16 05:04:53 +0000 |
commit | 5c148f2a8e46983d905053d3e09d67ef6948ccf4 (patch) | |
tree | e03170b68499b254fdcffe478b2d4786a7c867ce /cfg.c | |
parent | 8bd25913d494772e695311c5745bbcc8a5a57e77 (diff) | |
download | lcd4linux-5c148f2a8e46983d905053d3e09d67ef6948ccf4.tar.gz |
[lcd4linux @ 2004-01-16 05:04:53 by reinelt]
started plugin proc_stat which should parse /proc/stat
which again is a paint in the a**
thinking over implementation methods of delta functions
(CPU load, ...)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@314 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cfg.c,v 1.27 2004/01/14 11:33:00 reinelt Exp $^ +/* $Id: cfg.c,v 1.28 2004/01/16 05:04:53 reinelt Exp $^ * * config file stuff * @@ -23,6 +23,12 @@ * * * $Log: cfg.c,v $ + * Revision 1.28 2004/01/16 05:04:53 reinelt + * started plugin proc_stat which should parse /proc/stat + * which again is a paint in the a** + * thinking over implementation methods of delta functions + * (CPU load, ...) + * * Revision 1.27 2004/01/14 11:33:00 reinelt * new plugin 'uname' which does what it's called * text widget nearly finished @@ -306,9 +312,9 @@ static void cfg_add (char *section, char *key, char *val, int lock) entry=bsearch(buffer, Config, nConfig, sizeof(ENTRY), c_lookup); if (entry!=NULL) { - free (buffer); if (entry->lock>lock) return; - debug ("Warning: key '%s': value '%s' overwritten with '%s'", buffer, entry->val, val); + debug ("Warning: key <%s>: value <%s> overwritten with <%s>", buffer, entry->val, val); + free (buffer); if (entry->val) free (entry->val); entry->val=dequote(strdup(val)); return; |