Need to use back- not forward-slash in character constant
This commit is contained in:
parent
3d5e690977
commit
cbb36416ab
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user