mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
stream: replace the stream function pointer with a macro
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
|
||||
static int elf_flush(FAR struct elf_dumpinfo_s *cinfo)
|
||||
{
|
||||
return cinfo->stream->flush(cinfo->stream);
|
||||
return lib_stream_flush(cinfo->stream);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@@ -81,7 +81,7 @@ static int elf_emit(FAR struct elf_dumpinfo_s *cinfo,
|
||||
|
||||
while (total > 0)
|
||||
{
|
||||
ret = cinfo->stream->puts(cinfo->stream, ptr, total);
|
||||
ret = lib_stream_puts(cinfo->stream, ptr, total);
|
||||
if (ret < 0)
|
||||
{
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user