mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc)
to make the naming style consistent with each other Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
4be9ec774b
commit
055f1f33eb
@@ -129,7 +129,7 @@ static int syslog_stream_putc(FAR struct syslog_channel_s *channel, int ch)
|
||||
irqstate_t flags;
|
||||
|
||||
flags = enter_critical_section();
|
||||
lib_stream_put(chan->stream, ch);
|
||||
lib_stream_putc(chan->stream, ch);
|
||||
leave_critical_section(flags);
|
||||
|
||||
return OK;
|
||||
@@ -156,7 +156,7 @@ static int syslog_stream_force(FAR struct syslog_channel_s *channel, int ch)
|
||||
FAR struct syslog_stream_s *chan =
|
||||
(FAR struct syslog_stream_s *)channel;
|
||||
|
||||
lib_stream_put(chan->stream, ch);
|
||||
lib_stream_putc(chan->stream, ch);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user