Need to use back- not forward-slash in character constant

This commit is contained in:
Gregory Nutt 2016-06-27 09:52:50 -06:00
parent 3d5e690977
commit cbb36416ab
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ static int syslog_devchan_putc(int ch)
/* Check for a linefeed */
if (ch == '/n')
if (ch == '\n')
{
/* Pre-pend a carriage return */
ret = syslog_dev_putc('/r');
ret = syslog_dev_putc('\r');
if (ret < 0)
{
return ret;