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
@ -105,7 +105,7 @@ static ssize_t syslog_default_write(FAR const char *buffer, size_t buflen)
|
||||
}
|
||||
}
|
||||
|
||||
return buflen;
|
||||
return nwritten;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user