tools/nxstyle.c: Fix a rare false alarm that could occur if a variable or function name begins with the sub-string 'union' or 'struct'. misc fixes under fs/ and sched/ from application of current version of nxstyle.

This commit is contained in:
Gregory Nutt
2019-12-01 13:01:16 -06:00
parent 91d04837e9
commit d2af57169b
17 changed files with 23 additions and 10 deletions
+1
View File
@@ -78,6 +78,7 @@ static uint16_t g_aio_count;
/****************************************************************************
* Public Data
****************************************************************************/
/* This is a list of pending asynchronous I/O. The user must hold the
* lock on this list in order to access the list.
*/
+1 -1
View File
@@ -1045,7 +1045,7 @@ static int cromfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
finfo("Entry %lu: %s\n", (unsigned long)offset, name);
strncpy(dir->fd_dir.d_name, name, NAME_MAX + 1);
switch (node->cn_mode & s_IFTGT)
switch ((node->cn_mode & s_IFTGT) != 0)
{
case S_IFDIR: /* Directory */
dir->fd_dir.d_type = DTYPE_DIRECTORY;
+2
View File
@@ -2772,6 +2772,7 @@ int fat_dirnamewrite(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo)
* cache. So we can just fall throught to write that directory entry, perhaps
* using the short file name alias for the long file name.
*/
#endif
return fat_putsfname(fs, dirinfo);
@@ -2816,6 +2817,7 @@ int fat_dirwrite(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo,
* cache. So we can just fall throught to write that directory entry, perhaps
* using the short file name alias for the long file name.
*/
#endif
/* Put the short file name entry data */
+1
View File
@@ -158,6 +158,7 @@ static int foreach_inodelevel(FAR struct inode *node, struct inode_path_s *info)
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: foreach_inode
*
+1
View File
@@ -60,6 +60,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Configuration ************************************************************
*
* CONFIG_FS_AUTOMOUNTER - Enables AUTOMOUNT support
+1
View File
@@ -132,6 +132,7 @@ static ssize_t nxffs_rdseek(FAR struct nxffs_volume_s *volume,
/****************************************************************************
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: nxffs_read
*
+1
View File
@@ -65,6 +65,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Determines the size of an intermediate buffer that must be large enough
* to handle the longest line generated by this logic.
*/
+1
View File
@@ -64,6 +64,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Determines the size of an intermediate buffer that must be large enough
* to handle the longest line generated by this logic.
*/
+1
View File
@@ -64,6 +64,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Determines the size of an intermediate buffer that must be large enough
* to handle the longest line generated by this logic.
*/
+1
View File
@@ -65,6 +65,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Determines the size of an intermediate buffer that must be large enough
* to handle the longest line generated by this logic.
*/
-1
View File
@@ -95,7 +95,6 @@ struct skel_level1_s
/* Add context specific data types here for managing the directory
* open / read / stat, etc.
*/
};
/****************************************************************************
+1
View File
@@ -74,6 +74,7 @@
/****************************************************************************
* Private Types
****************************************************************************/
/* This enumeration identifies all of the thread attributes that can be
* accessed via the procfs file system.
*/
+2 -2
View File
@@ -353,8 +353,8 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf)
}
else
#endif
{
}
{
}
}
else if (inode->u.i_ops != NULL)
{