From 83fb5e2223bcdb74c1b07f4c9c4b5f63169e6cfe Mon Sep 17 00:00:00 2001 From: riccardom Date: Wed, 21 Jan 2009 18:59:47 +0000 Subject: [PATCH] Make a couple of functions static and put () around & operands. --- desmume/src/rtc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/rtc.cpp b/desmume/src/rtc.cpp index 79e85b13c..7cc866bc9 100644 --- a/desmume/src/rtc.cpp +++ b/desmume/src/rtc.cpp @@ -62,7 +62,7 @@ u8 cmdBitsSize[8] = {8, 8, 56, 24, 0, 24, 8, 8}; #define toBCD(x) ((x / 10) << 4) | (x % 10); -void rtcRecv() +static void rtcRecv() { //INFO("RTC Read command 0x%02X\n", rtc.cmd); memset(rtc.data, 0, sizeof(rtc.data)); @@ -136,7 +136,7 @@ void rtcRecv() } } -void rtcSend() +static void rtcSend() { //INFO("RTC write 0x%02X\n", rtc.cmd); switch (rtc.cmd) @@ -245,7 +245,7 @@ void rtcWrite(u16 val) rtc.bitsCount = 0; if (rtc.cmd == 0x04) { - if (rtc.regStatus2 & 0x0F == 0x04) + if ((rtc.regStatus2 & 0x0F) == 0x04) cmdBitsSize[rtc.cmd] = 24; else cmdBitsSize[rtc.cmd] = 8;