mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
Miscellaneous fixes from astyle tool.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user