aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at/rtc.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-25 20:41:46 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-27 00:00:50 +0100
commit84e0fb3f287864eca3a9322ef364b913f6a260bd (patch)
tree123333bce32a7d57c5112aa0d4c07b12821b6305 /i386/i386at/rtc.c
parent63eefc08b5e762937118254ad0b82583cc38a2d2 (diff)
downloadgnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.gz
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.tar.bz2
gnumach-84e0fb3f287864eca3a9322ef364b913f6a260bd.zip
Fix some warnings with -Wmissing-prototypes.
Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: <Y6j72lWRL9rsYy4j@mars>
Diffstat (limited to 'i386/i386at/rtc.c')
-rw-r--r--i386/i386at/rtc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index d771df8e..b2068416 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -60,7 +60,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static boolean_t first_rtcopen_ever = TRUE;
-void
+static void
rtcinit(void)
{
outb(RTC_ADDR, RTC_A);
@@ -70,7 +70,7 @@ rtcinit(void)
}
-int
+static int
rtcget(struct rtc_st *st)
{
unsigned char *regs = (unsigned char *)st;
@@ -87,7 +87,7 @@ rtcget(struct rtc_st *st)
return(0);
}
-void
+static void
rtcput(struct rtc_st *st)
{
unsigned char *regs = (unsigned char *)st;
@@ -111,7 +111,7 @@ extern struct timeval time;
static int month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
-int
+static int
yeartoday(int year)
{
if (year%4)
@@ -134,13 +134,13 @@ yeartoday(int year)
return 366;
}
-int
+static int
hexdectodec(char n)
{
return(((n>>4)&0x0F)*10 + (n&0x0F));
}
-char
+static char
dectohexdec(int n)
{
return((char)(((n/10)<<4)&0xF0) | ((n%10)&0x0F));