syslog: Fixes required for file syslog output
This commit is contained in:
parent
54fd0f0a04
commit
77e5115e23
|
@ -61,10 +61,10 @@ extern "C"
|
|||
/* The default SYSLOG channel */
|
||||
|
||||
struct syslog_channel_s; /* Forward reference */
|
||||
EXTERN const struct syslog_channel_s g_default_syslog_channel;
|
||||
EXTERN const struct syslog_channel_s g_default_channel;
|
||||
|
||||
/* This is the current syslog channel in use. It initially points to
|
||||
* g_default_syslog_channel.
|
||||
* g_default_channel.
|
||||
*/
|
||||
|
||||
EXTERN FAR const struct syslog_channel_s *g_syslog_channel;
|
||||
|
|
|
@ -149,7 +149,7 @@ int syslog_file_channel(FAR const char *devpath)
|
|||
|
||||
sched_lock();
|
||||
saved_channel = g_syslog_channel;
|
||||
ret = syslog_channel(&g_default_syslog_channel);
|
||||
ret = syslog_channel(&g_default_channel);
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout_with_lock;
|
||||
|
|
Loading…
Reference in New Issue