tools/nxstyle.c: Add logic to detect if there is a blank line following the final right brace. sched/: Applied the modified nxstyle to all C file as a test.

This commit is contained in:
Gregory Nutt
2019-10-24 10:49:28 -06:00
parent 2be1153030
commit b5111d2c38
14 changed files with 70 additions and 7 deletions
+2
View File
@@ -178,6 +178,7 @@ static void clock_inittime(void)
#ifndef CONFIG_RTC_HIRES
clock_basetime(&g_basetime);
#endif
#ifndef CONFIG_SCHED_TICKLESS
g_system_timer = INITIAL_SYSTEM_TIMER_TICKS;
if (g_system_timer > 0)
@@ -197,6 +198,7 @@ static void clock_inittime(void)
}
}
#endif /* !CONFIG_SCHED_TICKLESS */
#else
clock_inittimekeeping();
#endif
+1
View File
@@ -122,6 +122,7 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp)
up_rtc_settime(tp);
}
#endif
leave_critical_section(flags);
sinfo("basetime=(%ld,%lu) bias=(%ld,%lu)\n",