From: Peter H. Froehlich Date: Thu, 5 Nov 2015 21:40:29 +0000 (-0500) Subject: Coding style. X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=05560b89901689d20c48eb5f9ed614c66cc17537;p=xv6-public Coding style. --- 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);