system/cle: Fix cle application build

This commit is contained in:
Gustavo Henrique Nihei 2021-02-18 19:50:32 -03:00 committed by Xiang Xiao
parent 2e17cd2e6b
commit 08c29110a6

View File

@ -168,7 +168,7 @@ struct cle_s
****************************************************************************/
#if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
static int cle_debug(FAR const char *fmt, ...);
static void cle_debug(FAR const char *fmt, ...);
#endif
/* Low-level display and data entry functions */
@ -248,17 +248,15 @@ static const char g_setcolor[] = VT100_FMT_FORE_COLOR;
****************************************************************************/
#if CONFIG_SYSTEM_CLE_DEBUGLEVEL > 0
static int cle_debug(FAR const char *fmt, ...)
static void cle_debug(FAR const char *fmt, ...)
{
va_list ap;
int ret;
/* Let vsyslog do the real work */
va_start(ap, fmt);
ret = vsyslog(LOG_DEBUG, fmt, ap);
vsyslog(LOG_DEBUG, fmt, ap);
va_end(ap);
return ret;
}
#endif