1
0
Fork 0
forked from nuttx/nuttx-update

syslog/intbuffer: some improve for intbuffer

1. add static for internal function
2. add FAR for pointer prototype

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-12-18 11:13:22 +08:00 committed by Xiang Xiao
parent bc6bf019dd
commit 29f1ca2c79

View file

@ -94,10 +94,10 @@ static struct syslog_intbuffer_s g_syslog_intbuffer =
*
****************************************************************************/
void syslog_flush_internal(bool force, size_t buflen)
static void syslog_flush_internal(bool force, size_t buflen)
{
irqstate_t flags;
char *buffer;
FAR char *buffer;
size_t size;
/* This logic is performed with the scheduler disabled to protect from