From 29f1ca2c79b34033a4ee73a588a7fabac489380d Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 18 Dec 2024 11:13:22 +0800 Subject: [PATCH] syslog/intbuffer: some improve for intbuffer 1. add static for internal function 2. add FAR for pointer prototype Signed-off-by: chao an --- drivers/syslog/syslog_intbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/syslog_intbuffer.c b/drivers/syslog/syslog_intbuffer.c index 0877f14514..d874819d4e 100644 --- a/drivers/syslog/syslog_intbuffer.c +++ b/drivers/syslog/syslog_intbuffer.c @@ -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