diff --git a/arch/sim/src/nuttx-names.dat b/arch/sim/src/nuttx-names.dat index 1f29147dc2c..5784beb8707 100644 --- a/arch/sim/src/nuttx-names.dat +++ b/arch/sim/src/nuttx-names.dat @@ -24,6 +24,7 @@ fread NXfread fseek NXfseek fwrite NXfwrite fsync NXfsync +fstat NXfstat ftell NXftell getenv NXgetenv getopt NXgetopt diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 806de2f4f6f..78df1f1024d 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -1634,7 +1634,7 @@ static int fat_fstat(FAR const struct file *filep, FAR struct stat *buf) /* Sanity checks */ - DEBUGASSERT(filep->f_priv == NULL && filep->f_inode != NULL); + DEBUGASSERT(filep->f_priv != NULL && filep->f_inode != NULL); /* Get the mountpoint inode reference from the file structure and the * mountpoint private data from the inode structure diff --git a/fs/romfs/fs_romfs.c b/fs/romfs/fs_romfs.c index 9c1a7311d9a..354c603b706 100644 --- a/fs/romfs/fs_romfs.c +++ b/fs/romfs/fs_romfs.c @@ -719,7 +719,7 @@ static int romfs_fstat(FAR const struct file *filep, FAR struct stat *buf) /* Sanity checks */ - DEBUGASSERT(filep->f_priv == NULL && filep->f_inode != NULL); + DEBUGASSERT(filep->f_priv != NULL && filep->f_inode != NULL); /* Get mountpoint private data from the inode reference from the file * structure