diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-05-26 11:37:36 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-05-26 11:37:36 +0000 |
commit | 21152104d296939c2babecd8999b03c325de0b2c (patch) | |
tree | b885778697b3b577c7e9a2dd110679a20e669e26 /debug.c | |
parent | 6d265a408c14f68886dba867bd9bdb973266f3b3 (diff) | |
download | lcd4linux-21152104d296939c2babecd8999b03c325de0b2c.tar.gz |
[lcd4linux @ 2004-05-26 11:37:35 by reinelt]
Curses driver ported.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@436 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r-- | debug.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $Id: debug.c,v 1.7 2004/02/10 07:42:35 reinelt Exp $ +/* $Id: debug.c,v 1.8 2004/05/26 11:37:36 reinelt Exp $ * * debug() and error() functions * @@ -22,6 +22,10 @@ * * * $Log: debug.c,v $ + * Revision 1.8 2004/05/26 11:37:36 reinelt + * + * Curses driver ported. + * * Revision 1.7 2004/02/10 07:42:35 reinelt * cut off all old-style files which are no longer used with NextGeneration * @@ -87,12 +91,10 @@ void message (int level, const char *format, ...) va_end(ap); if (!running_background) { - // Fixme -#if 0 -#ifdef WITH_TEXT - extern int curs_err(char *); - if (!curs_err(buffer)) -#endif + +#ifdef WITH_CURSES + extern int curses_error(char *); + if (!curses_error(buffer)) #endif fprintf (level?stdout:stderr, "%s\n", buffer); } @@ -102,7 +104,7 @@ void message (int level, const char *format, ...) if (!log_open) { openlog ("LCD4Linux", LOG_PID, LOG_USER); - log_open=1; + log_open = 1; } switch (level) { |