summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-02 14:24:45 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-02 14:25:50 +0200
commitef0547c90584f589281051d7b9b9f8b208b5b55b (patch)
treebc730d5bc2f19b396255bbcd5241a118bccf0505 /i386/i386at
parent30ce514d975026e05a3580c7fb9ab39c9f35b84e (diff)
Fix warning
* i386/i386at/rtc.c (rtcget, rtcput): Make functions take an rtc_st structure which it casts to char * itself.
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/rtc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index 946f08f..01e0977 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -66,8 +66,9 @@ rtcinit(void)
int
-rtcget(unsigned char *regs)
+rtcget(struct rtc_st *st)
{
+ unsigned char *regs = (unsigned char *)st;
if (first_rtcopen_ever) {
rtcinit();
first_rtcopen_ever = FALSE;
@@ -82,8 +83,9 @@ rtcget(unsigned char *regs)
}
void
-rtcput(unsigned char *regs)
+rtcput(struct rtc_st *st)
{
+ unsigned char *regs = (unsigned char *)st;
unsigned char x;
if (first_rtcopen_ever) {