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; irqstate_t flags;
char *buffer; FAR char *buffer;
size_t size; size_t size;
/* This logic is performed with the scheduler disabled to protect from /* This logic is performed with the scheduler disabled to protect from