mirror of
https://github.com/apache/nuttx.git
synced 2026-09-03 15:43:01 +00:00
syslog_default_write: Fix the return value
Found by clang-check:
syslog/syslog_write.c:96:7: warning: Value stored to 'nwritten' is never read
nwritten = g_syslog_channel->sc_write(buffer, buflen);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
This commit is contained in:
parent
9dcc6f6da6
commit
9274b67a45
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen)
|
|||
}
|
||||
}
|
||||
|
||||
return buflen;
|
||||
return nwritten;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue