Miscellaneous fixes from astyle tool.

This commit is contained in:
Arjun Hary
2017-08-14 17:19:27 -06:00
committed by Gregory Nutt
parent 777169385c
commit b274a97840
63 changed files with 422 additions and 418 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ static long compare_timespec(FAR const struct timespec *a,
return 1;
}
return (long)a->tv_nsec -(long)b->tv_nsec;
return (long)a->tv_nsec - (long)b->tv_nsec;
}
/****************************************************************************
+1 -1
View File
@@ -80,5 +80,5 @@ static const uint8_t g_lookup[12] = {2, 5, 7, 10, 12, 15, 17, 20, 23, 25, 28, 30
int clock_dow(int year, int month, int day)
{
day += month < 2 ? year-- : year - 2;
return ((int)g_lookup[month] + day + 4 + year/4 - year/100 + year/400) % 7;
return ((int)g_lookup[month] + day + 4 + year / 4 - year / 100 + year / 400) % 7;
}
+1 -1
View File
@@ -76,7 +76,7 @@
*/
# define INITIAL_SYSTEM_TIMER_TICKS \
((uint64_t)(UINT32_MAX - (TICK_PER_SEC * 5)))
((uint64_t)(UINT32_MAX - (TICK_PER_SEC * 5)))
#else
# define INITIAL_SYSTEM_TIMER_TICKS 0
#endif