From 05560b89901689d20c48eb5f9ed614c66cc17537 Mon Sep 17 00:00:00 2001 From: "Peter H. Froehlich" Date: Thu, 5 Nov 2015 16:40:29 -0500 Subject: [PATCH] Coding style. --- cmos.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmos.c b/cmos.c index 6036031..68fcb90 100644 --- a/cmos.c +++ b/cmos.c @@ -47,17 +47,17 @@ void cmostime(struct rtcdate *r) bcd = (sb & CMOS_BINARY_BIT) == 0; // make sure CMOS doesn't modify time while we read it - for (;;) { + for(;;){ fill_rtcdate(&t1); - if (cmosread(CMOS_STATA) & CMOS_UIP_BIT) - continue; + if(cmosread(CMOS_STATA) & CMOS_UIP_BIT) + continue; fill_rtcdate(&t2); - if (memcmp(&t1, &t2, sizeof(t1)) == 0) + if(memcmp(&t1, &t2, sizeof(t1)) == 0) break; } // convert - if (bcd) { + if(bcd){ #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); CONV(minute); -- 2.50.1