aboutsummaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-02 05:15:46 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-02 05:15:46 +0000
commitdfcd00a79bf78f14f8699b303b1e8bb4d77d53f0 (patch)
tree459f531085547461e564ff669c892fd4fdeddbfb /cfg.c
parent733a1141da1f25e986ee423d67f5342673102b30 (diff)
downloadlcd4linux-dfcd00a79bf78f14f8699b303b1e8bb4d77d53f0.tar.gz
[lcd4linux @ 2005-05-02 05:15:46 by reinelt]
make busy-flag checking configurable for LCD-Linux driver git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@535 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cfg.c b/cfg.c
index 9e17439..4bd834c 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,4 +1,4 @@
-/* $Id: cfg.c,v 1.45 2005/01/18 06:30:21 reinelt Exp $^
+/* $Id: cfg.c,v 1.46 2005/05/02 05:15:46 reinelt Exp $^
*
* config file stuff
*
@@ -23,6 +23,9 @@
*
*
* $Log: cfg.c,v $
+ * Revision 1.46 2005/05/02 05:15:46 reinelt
+ * make busy-flag checking configurable for LCD-Linux driver
+ *
* Revision 1.45 2005/01/18 06:30:21 reinelt
* added (C) to all copyright statements
*
@@ -583,13 +586,13 @@ int cfg_number (const char *section, const char *key, const int defval, const in
DelResult(&result);
if (*value<min) {
- error ("bad %s value '%d' in %s, minimum is %d", key, *value, cfg_source(), min);
+ error ("bad '%s' value '%d' in %s, minimum is %d", key, *value, cfg_source(), min);
*value=min;
return -1;
}
if (max > min && max != -1 && *value > max) {
- error ("bad %s value '%d' in %s, maximum is %d", key, *value, cfg_source(), max);
+ error ("bad '%s' value '%d' in %s, maximum is %d", key, *value, cfg_source(), max);
*value=max;
return -1;
}