indented using indent.sh script to get uniform looking code for release

This commit is contained in:
skarg
2013-03-13 22:17:13 +00:00
parent 2de46521b8
commit ba3242aafd
120 changed files with 3382 additions and 3299 deletions
+6 -5
View File
@@ -87,7 +87,7 @@ static bool date_is_valid(
uint8_t month,
uint8_t day)
{
bool status = false; /* true if value date */
bool status = false; /* true if value date */
uint8_t monthdays; /* days in a month */
@@ -193,16 +193,17 @@ static bool time_is_valid(
* @return true if the date and time are valid
*/
bool datetime_is_valid(
BACNET_DATE *bdate,
BACNET_TIME *btime)
BACNET_DATE * bdate,
BACNET_TIME * btime)
{
bool status = false; /* return value */
bool status = false; /* return value */
/* get the number of days in the month, and check for valid month too */
if (bdate) {
status = date_is_valid(bdate->year, bdate->month, bdate->day);
if (status && btime) {
status = time_is_valid(btime->hour, btime->min, btime->sec,
status =
time_is_valid(btime->hour, btime->min, btime->sec,
btime->hundredths);
} else {
status = false;