aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <>2004-01-10 17:45:26 +0000
committerreinelt <>2004-01-10 17:45:26 +0000
commita5a10e14a47d027a579058f54ac278029cdb2afc (patch)
tree26e332d918691bb0972ba80d6b0d569be933b248 /lcd4linux.c
parentcc72fe8df8ab12f9db93f37d4e509696242b5a0b (diff)
downloadlcd4linux-a5a10e14a47d027a579058f54ac278029cdb2afc.tar.gz
[lcd4linux @ 2004-01-10 17:45:26 by reinelt]
changed initialization order so cfg() gets initialized before plugins. This way a plugin's init() can use cfg_get(). Thanks to Xavier for reporting this one!
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 28e39ff..745c8e3 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.56 2004/01/09 17:03:07 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.57 2004/01/10 17:45:26 reinelt Exp $
*
* LCD4Linux
*
@@ -22,6 +22,11 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.57 2004/01/10 17:45:26 reinelt
+ * changed initialization order so cfg() gets initialized before plugins.
+ * This way a plugin's init() can use cfg_get().
+ * Thanks to Xavier for reporting this one!
+ *
* Revision 1.56 2004/01/09 17:03:07 reinelt
* initiated transfer to new driver architecture
* new file 'drv.c' will someday replace 'display.c'
@@ -456,10 +461,10 @@ int main (int argc, char *argv[])
info ("invoked without full path; restart may not work!");
}
- if (plugin_init()==-1)
+ if (cfg_init(cfg)==-1)
exit (1);
- if (cfg_init(cfg)==-1)
+ if (plugin_init()==-1)
exit (1);
display=cfg_get(NULL, "Display", NULL);