syslog: Fixes required for file syslog output

This commit is contained in:
Max Kriegleder 2016-10-19 08:27:20 -06:00 committed by Gregory Nutt
parent 54fd0f0a04
commit 77e5115e23
2 changed files with 3 additions and 3 deletions

View File

@ -61,10 +61,10 @@ extern "C"
/* The default SYSLOG channel */ /* The default SYSLOG channel */
struct syslog_channel_s; /* Forward reference */ 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 /* 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; EXTERN FAR const struct syslog_channel_s *g_syslog_channel;

View File

@ -149,7 +149,7 @@ int syslog_file_channel(FAR const char *devpath)
sched_lock(); sched_lock();
saved_channel = g_syslog_channel; saved_channel = g_syslog_channel;
ret = syslog_channel(&g_default_syslog_channel); ret = syslog_channel(&g_default_channel);
if (ret < 0) if (ret < 0)
{ {
goto errout_with_lock; goto errout_with_lock;