format code by Astyle.

This commit is contained in:
aozima 2013-05-17 20:57:05 +08:00
parent f7d1097e6b
commit 36fc5520cb
1 changed files with 32 additions and 32 deletions

View File

@ -129,9 +129,9 @@ static void alarm_wakeup(struct rt_alarm *alarm, struct tm *now)
case RT_ALARM_YAERLY: case RT_ALARM_YAERLY:
{ {
if ((alarm->wktime.tm_mday == now->tm_mday) && \ if ((alarm->wktime.tm_mday == now->tm_mday) && \
(alarm->wktime.tm_mon == now->tm_mon)) (alarm->wktime.tm_mon == now->tm_mon))
{ {
if ((sec_now - sec_alarm) <= RT_ALARM_DELAY) if ((sec_now - sec_alarm) <= RT_ALARM_DELAY)
wakeup = RT_TRUE; wakeup = RT_TRUE;
} }
} }
@ -253,7 +253,7 @@ static rt_bool_t is_valid_date(struct tm *date)
} }
if ((date->tm_mday < 1) || \ if ((date->tm_mday < 1) || \
(date->tm_mday > days_of_year_month(date->tm_year, date->tm_mon))) (date->tm_mday > days_of_year_month(date->tm_year, date->tm_mon)))
{ {
return (RT_FALSE); return (RT_FALSE);
} }