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
+2 -1
View File
@@ -279,7 +279,8 @@ static int modprocfs_dup(FAR const struct file *oldp, FAR struct file *newp)
/* Allocate a new container to hold the task and attribute selection */
newpriv = (FAR struct modprocfs_file_s *)kmm_zalloc(sizeof(struct modprocfs_file_s));
newpriv = (FAR struct modprocfs_file_s *)
kmm_zalloc(sizeof(struct modprocfs_file_s));
if (!newpriv)
{
ferr("ERROR: Failed to allocate file attributes\n");