summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_inode.c')
-rw-r--r--nuttx/fs/fs_inode.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/fs/fs_inode.c b/nuttx/fs/fs_inode.c
index b080a4e43..db7451d30 100644
--- a/nuttx/fs/fs_inode.c
+++ b/nuttx/fs/fs_inode.c
@@ -53,9 +53,12 @@
#include "fs_internal.h"
/************************************************************
- * Private types
+ * Definitions
************************************************************/
+#define INODE_SEMGIVE() \
+ sem_post(&tree_sem)
+
/************************************************************
* Private Variables
************************************************************/
@@ -86,10 +89,7 @@ static void _inode_semtake(void)
}
}
-static inline void _inode_semgive(void)
-{
- sem_post(&tree_sem);
-}
+#define _inode_semgive(void) sem_post(&tree_sem)
static int _inode_compare(const char *fname,
struct inode *node)
@@ -152,20 +152,20 @@ static int _inode_compare(const char *fname,
}
}
-static inline int _inode_namelen(const char *name)
+static int _inode_namelen(const char *name)
{
const char *tmp = name;
while(*tmp && *tmp != '/') tmp++;
return tmp - name;
}
-static inline void _inode_namecpy(char *dest, const char *src)
+static void _inode_namecpy(char *dest, const char *src)
{
while(*src && *src != '/') *dest++ = *src++;
*dest='\0';
}
-static inline const char *_inode_nextname(const char *name)
+static const char *_inode_nextname(const char *name)
{
while (*name && *name != '/') name++;
if (*name) name++;