mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Eliminate a warning
This commit is contained in:
+3
-1
@@ -70,7 +70,9 @@
|
|||||||
int fstatfs(int fd, FAR struct statfs *buf)
|
int fstatfs(int fd, FAR struct statfs *buf)
|
||||||
{
|
{
|
||||||
FAR struct file *filep;
|
FAR struct file *filep;
|
||||||
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||||
FAR struct inode *inode;
|
FAR struct inode *inode;
|
||||||
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(buf != NULL);
|
DEBUGASSERT(buf != NULL);
|
||||||
@@ -98,6 +100,7 @@ int fstatfs(int fd, FAR struct statfs *buf)
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||||
/* Get the inode from the file structure */
|
/* Get the inode from the file structure */
|
||||||
|
|
||||||
inode = filep->f_inode;
|
inode = filep->f_inode;
|
||||||
@@ -107,7 +110,6 @@ int fstatfs(int fd, FAR struct statfs *buf)
|
|||||||
* are dealing with.
|
* are dealing with.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
|
||||||
if (INODE_IS_MOUNTPT(inode))
|
if (INODE_IS_MOUNTPT(inode))
|
||||||
{
|
{
|
||||||
/* The node is a file system mointpoint. Verify that the mountpoint
|
/* The node is a file system mointpoint. Verify that the mountpoint
|
||||||
|
|||||||
+3
-3
@@ -113,9 +113,9 @@ static inline FAR char *rindex(FAR const char *s, int c)
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int ffs(int j);
|
int ffs(int j);
|
||||||
int strcasecmp(FAR const char *, FAR const char *);
|
int strcasecmp(FAR const char *, FAR const char *);
|
||||||
int strncasecmp(FAR const char *, FAR const char *, size_t);
|
int strncasecmp(FAR const char *, FAR const char *, size_t);
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|||||||
Reference in New Issue
Block a user