Fix missing implementation of static function
This commit is contained in:
parent
9a19d64610
commit
a68232863e
|
@ -95,26 +95,12 @@ struct ramlog_dev_s
|
||||||
* Private Function Prototypes
|
* Private Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/* Syslog channel methods */
|
||||||
|
|
||||||
#ifdef CONFIG_RAMLOG_SYSLOG
|
#ifdef CONFIG_RAMLOG_SYSLOG
|
||||||
static int ramlog_flush(void);
|
static int ramlog_flush(void);
|
||||||
#endif
|
#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 */
|
/* Helper functions */
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_POLL
|
#ifndef CONFIG_DISABLE_POLL
|
||||||
|
@ -134,6 +120,19 @@ static int ramlog_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||||
bool setup);
|
bool setup);
|
||||||
#endif
|
#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
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -186,6 +185,17 @@ static struct ramlog_dev_s g_sysdev =
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: ramlog_flush
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_RAMLOG_SYSLOG
|
||||||
|
static int ramlog_flush(void)
|
||||||
|
{
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: ramlog_pollnotify
|
* Name: ramlog_pollnotify
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue