aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-11-29 04:42:07 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-11-29 04:42:07 +0000
commitbb2c0c5879c973f658a823df7c979409c1caa76c (patch)
tree44f42fa3c9d46b7dec5d9fcc99273c7d88515f74 /cfg.c
parentb1946ed6796f73cbcff9f131337f2fc0f41205a5 (diff)
downloadlcd4linux-bb2c0c5879c973f658a823df7c979409c1caa76c.tar.gz
[lcd4linux @ 2004-11-29 04:42:06 by reinelt]
removed the 99999 msec limit on widget update time (thanks to Petri Damsten) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@496 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cfg.c b/cfg.c
index 4d1e2da..be21ea6 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,4 +1,4 @@
-/* $Id: cfg.c,v 1.42 2004/06/26 12:04:59 reinelt Exp $^
+/* $Id: cfg.c,v 1.43 2004/11/29 04:42:06 reinelt Exp $^
*
* config file stuff
*
@@ -23,6 +23,9 @@
*
*
* $Log: cfg.c,v $
+ * Revision 1.43 2004/11/29 04:42:06 reinelt
+ * removed the 99999 msec limit on widget update time (thanks to Petri Damsten)
+ *
* Revision 1.42 2004/06/26 12:04:59 reinelt
*
* uh-oh... the last CVS log message messed up things a lot...
@@ -579,7 +582,7 @@ int cfg_number (const char *section, const char *key, const int defval, const in
return -1;
}
- if (*value>max) {
+ if (max > min && max != -1 && *value > max) {
error ("bad %s value '%d' in %s, maximum is %d", key, *value, cfg_source(), max);
*value=max;
return -1;