From ef0547c90584f589281051d7b9b9f8b208b5b55b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 2 May 2015 14:24:45 +0200 Subject: Fix warning * i386/i386at/rtc.c (rtcget, rtcput): Make functions take an rtc_st structure which it casts to char * itself. --- i386/i386at/rtc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'i386') 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) { -- cgit v1.2.3