mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
libs: nxstyle fixes
nxstyle fixes to pass the CI checks Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
796ef13b20
commit
d6b50a1d3f
@@ -55,10 +55,13 @@ static off_t lib_getrdoffset(FAR FILE *stream)
|
||||
off_t rdoffset = 0;
|
||||
lib_take_semaphore(stream);
|
||||
|
||||
if (stream->fs_bufstart != NULL && stream->fs_bufread != stream->fs_bufstart)
|
||||
if (stream->fs_bufstart !=
|
||||
NULL && stream->fs_bufread !=
|
||||
stream->fs_bufstart)
|
||||
{
|
||||
#if CONFIG_NUNGET_CHARS > 0
|
||||
rdoffset = stream->fs_bufread - stream->fs_bufpos + stream->fs_nungotten;
|
||||
rdoffset = stream->fs_bufread - stream->fs_bufpos +
|
||||
stream->fs_nungotten;
|
||||
#else
|
||||
rdoffset = stream->fs_bufread - stream->fs_bufpos;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user