aboutsummaryrefslogtreecommitdiffstats
path: root/seti.c
diff options
context:
space:
mode:
authorreinelt <>2003-02-22 07:53:10 +0000
committerreinelt <>2003-02-22 07:53:10 +0000
commit90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch)
tree9a0596fed56b4985e15b7d677c43c0bda80fbabb /seti.c
parentdb2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff)
downloadlcd4linux-90be5ac59fddad620f66ebc9dc813802cd45a7e3.tar.gz
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval)
Diffstat (limited to 'seti.c')
-rw-r--r--seti.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/seti.c b/seti.c
index 03d0943..20d7643 100644
--- a/seti.c
+++ b/seti.c
@@ -1,4 +1,4 @@
-/* $Id: seti.c,v 1.6 2001/09/12 05:37:22 reinelt Exp $
+/* $Id: seti.c,v 1.7 2003/02/22 07:53:10 reinelt Exp $
*
* seti@home specific functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: seti.c,v $
+ * Revision 1.7 2003/02/22 07:53:10 reinelt
+ * cfg_get(key,defval)
+ *
* Revision 1.6 2001/09/12 05:37:22 reinelt
*
* fixed a bug in seti.c (file was never closed, lcd4linux run out of fd's
@@ -94,7 +97,7 @@ int Seti (double *perc, double *cput)
time(&now);
if (fd==-2) {
- char *dir=cfg_get("SetiDir");
+ char *dir=cfg_get("SetiDir",NULL);
if (dir==NULL || *dir=='\0') {
error ("%s: missing 'SetiDir' entry!\n", cfg_file());
fd=-1;