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

View File

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