mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Fix SDCC compilation problems
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@72 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -48,6 +48,8 @@
|
|||||||
#include <nuttx/fs.h>
|
#include <nuttx/fs.h>
|
||||||
#include "fs_internal.h"
|
#include "fs_internal.h"
|
||||||
|
|
||||||
|
#if CONFIG_NFILE_DESCRIPTORS >0
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
@@ -106,9 +108,11 @@ static int _inode_compare(const char *fname,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* At end of find name?*/
|
/* At end of find name?*/
|
||||||
|
|
||||||
else if (!*fname || *fname == '/')
|
else if (!*fname || *fname == '/')
|
||||||
{
|
{
|
||||||
/* Yes... return find name < node name */
|
/* Yes... return find name < node name */
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,3 +322,5 @@ const char *inode_nextname(const char *name)
|
|||||||
if (*name) name++;
|
if (*name) name++;
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,8 @@
|
|||||||
#include <nuttx/fs.h>
|
#include <nuttx/fs.h>
|
||||||
#include "fs_internal.h"
|
#include "fs_internal.h"
|
||||||
|
|
||||||
|
#if CONFIG_NFILE_DESCRIPTORS >0
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
@@ -94,3 +96,7 @@ FAR struct inode *inode_find(const char *path)
|
|||||||
inode_semgive();
|
inode_semgive();
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,8 @@
|
|||||||
#include <nuttx/fs.h>
|
#include <nuttx/fs.h>
|
||||||
#include "fs_internal.h"
|
#include "fs_internal.h"
|
||||||
|
|
||||||
|
#if CONFIG_NFILE_DESCRIPTORS >0
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
@@ -122,3 +124,5 @@ FAR struct inode *inode_finddir(const char *path)
|
|||||||
inode_semgive();
|
inode_semgive();
|
||||||
return child;
|
return child;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||||
|
|||||||
@@ -43,6 +43,8 @@
|
|||||||
#include <nuttx/fs.h>
|
#include <nuttx/fs.h>
|
||||||
#include "fs_internal.h"
|
#include "fs_internal.h"
|
||||||
|
|
||||||
|
#if CONFIG_NFILE_DESCRIPTORS >0
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
@@ -101,3 +103,5 @@ void inode_release(FAR struct inode *node)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* CONFIG_NFILE_DESCRIPTORS */
|
||||||
|
|||||||
Reference in New Issue
Block a user