Fix missing implementation of static function

This commit is contained in:
Stefan Kolb 2016-06-20 06:10:16 -06:00 committed by Gregory Nutt
parent 9a19d64610
commit a68232863e
1 changed files with 26 additions and 16 deletions

View File

@ -95,26 +95,12 @@ struct ramlog_dev_s
* Private Function Prototypes
****************************************************************************/
/* Syslog channel methods */
#ifdef CONFIG_RAMLOG_SYSLOG
static int ramlog_flush(void);
#endif
/****************************************************************************
* Private Data
****************************************************************************/
#ifdef CONFIG_RAMLOG_SYSLOG
static const struct syslog_channel_s g_ramlog_syslog_channel =
{
ramlog_putc,
ramlog_putc,
ramlog_flush
};
#endif
/****************************************************************************
* Private Function Prototypes
****************************************************************************/
/* Helper functions */
#ifndef CONFIG_DISABLE_POLL
@ -134,6 +120,19 @@ static int ramlog_poll(FAR struct file *filep, FAR struct pollfd *fds,
bool setup);
#endif
/****************************************************************************
* Private Data
****************************************************************************/
#ifdef CONFIG_RAMLOG_SYSLOG
static const struct syslog_channel_s g_ramlog_syslog_channel =
{
ramlog_putc,
ramlog_putc,
ramlog_flush
};
#endif
/****************************************************************************
* Private Data
****************************************************************************/
@ -186,6 +185,17 @@ static struct ramlog_dev_s g_sysdev =
* Private Functions
****************************************************************************/
/****************************************************************************
* Name: ramlog_flush
****************************************************************************/
#ifdef CONFIG_RAMLOG_SYSLOG
static int ramlog_flush(void)
{
return OK;
}
#endif
/****************************************************************************
* Name: ramlog_pollnotify
****************************************************************************/