Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/dev Modify the rtc_gettime() and rtc_settime() ...
details: https://anonhg.NetBSD.org/src/rev/4c4dedc743c1
branches: trunk
changeset: 581938:4c4dedc743c1
user: he <he%NetBSD.org@localhost>
date: Fri Jun 10 22:25:42 2005 +0000
description:
Modify the rtc_gettime() and rtc_settime() functions to take a volatile
argument to make this build with -Wcast-qual.
diffstat:
sys/arch/sh5/dev/rtc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 1100afe87321 -r 4c4dedc743c1 sys/arch/sh5/dev/rtc.c
--- a/sys/arch/sh5/dev/rtc.c Fri Jun 10 22:08:39 2005 +0000
+++ b/sys/arch/sh5/dev/rtc.c Fri Jun 10 22:25:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtc.c,v 1.9 2005/06/01 10:55:07 scw Exp $ */
+/* $NetBSD: rtc.c,v 1.10 2005/06/10 22:25:42 he Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.9 2005/06/01 10:55:07 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.10 2005/06/10 22:25:42 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -73,8 +73,8 @@
rtcmatch, rtcattach, NULL, NULL);
extern struct cfdriver rtc_cd;
-static int rtc_gettime(struct todr_chip_handle *, struct timeval *);
-static int rtc_settime(struct todr_chip_handle *, struct timeval *);
+static int rtc_gettime(struct todr_chip_handle *, volatile struct timeval *);
+static int rtc_settime(struct todr_chip_handle *, volatile struct timeval *);
static int rtc_getcal(struct todr_chip_handle *, int *);
static int rtc_setcal(struct todr_chip_handle *, int);
@@ -115,7 +115,7 @@
}
static int
-rtc_gettime(struct todr_chip_handle *todr, struct timeval *tv)
+rtc_gettime(struct todr_chip_handle *todr, volatile struct timeval *tv)
{
struct rtc_softc *sc = todr->cookie;
struct clock_ymdhms dt;
@@ -167,7 +167,7 @@
}
static int
-rtc_settime(struct todr_chip_handle *todr, struct timeval *tv)
+rtc_settime(struct todr_chip_handle *todr, volatile struct timeval *tv)
{
struct rtc_softc *sc = todr->cookie;
struct clock_ymdhms dt;
Home |
Main Index |
Thread Index |
Old Index