diff options
author | reinelt <> | 2003-02-22 07:53:10 +0000 |
---|---|---|
committer | reinelt <> | 2003-02-22 07:53:10 +0000 |
commit | 90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch) | |
tree | 9a0596fed56b4985e15b7d677c43c0bda80fbabb /BeckmannEgle.c | |
parent | db2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff) | |
download | lcd4linux-90be5ac59fddad620f66ebc9dc813802cd45a7e3.tar.gz |
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval)
Diffstat (limited to 'BeckmannEgle.c')
-rw-r--r-- | BeckmannEgle.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/BeckmannEgle.c b/BeckmannEgle.c index 00d0f9b..8eff046 100644 --- a/BeckmannEgle.c +++ b/BeckmannEgle.c @@ -1,4 +1,4 @@ -/* $Id: BeckmannEgle.c,v 1.11 2002/08/22 05:51:36 reinelt Exp $ +/* $Id: BeckmannEgle.c,v 1.12 2003/02/22 07:53:09 reinelt Exp $ * * driver for Beckmann+Egle mini terminals * @@ -20,6 +20,9 @@ * * * $Log: BeckmannEgle.c,v $ + * Revision 1.12 2003/02/22 07:53:09 reinelt + * cfg_get(key,defval) + * * Revision 1.11 2002/08/22 05:51:36 reinelt * cosmetic changes * @@ -219,14 +222,14 @@ int BE_init (LCD *Self) Port=NULL; } - port=cfg_get ("Port"); + port=cfg_get ("Port", NULL); if (port==NULL || *port=='\0') { error ("BeckmannEgle: no 'Port' entry in %s", cfg_file()); return -1; } Port=strdup(port); - s=cfg_get("Type"); + s=cfg_get("Type", NULL); if (s==NULL || *s=='\0') { error ("BeckmannEgle: no 'Type' entry in %s", cfg_file()); return -1; |