summaryrefslogtreecommitdiff
path: root/test/rtc.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:22:25 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 05:38:55 +0000
commit79fde1cf39d4e4c2f6f4049eb877782bc60632c3 (patch)
tree6a80f57cd03dfb726bf05ef13382920ae55d1e64 /test/rtc.c
parent401f570a9e04fd12af522e084f0845d446b57c79 (diff)
downloadchrome-ec-79fde1cf39d4e4c2f6f4049eb877782bc60632c3.tar.gz
test/rtc.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Id5efb394a3c8566f73095b9f1562a96b22a0b1a7 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730537 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'test/rtc.c')
-rw-r--r--test/rtc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/rtc.c b/test/rtc.c
index 3e53f85611..d7f20f831f 100644
--- a/test/rtc.c
+++ b/test/rtc.c
@@ -16,15 +16,14 @@ static struct {
struct calendar_date time;
uint32_t sec;
} test_case[] = {
- {{8, 3, 1}, 1204329600},
- {{17, 10, 1}, 1506816000},
+ { { 8, 3, 1 }, 1204329600 },
+ { { 17, 10, 1 }, 1506816000 },
};
static int calendar_time_comp(struct calendar_date time_1,
- struct calendar_date time_2)
+ struct calendar_date time_2)
{
- return (time_1.year == time_2.year &&
- time_1.month == time_2.month &&
+ return (time_1.year == time_2.year && time_1.month == time_2.month &&
time_1.day == time_2.day);
}