Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/tc Add __UNVOLATILE() to a cast when calling memset(...



details:   https://anonhg.NetBSD.org/src/rev/104a80302f08
branches:  trunk
changeset: 581876:104a80302f08
user:      he <he%NetBSD.org@localhost>
date:      Wed Jun 08 22:33:56 2005 +0000

description:
Add __UNVOLATILE() to a cast when calling memset() to appease -Wcast-qual.

diffstat:

 sys/dev/tc/px.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r a9f4c2adb5a7 -r 104a80302f08 sys/dev/tc/px.c
--- a/sys/dev/tc/px.c   Wed Jun 08 22:16:44 2005 +0000
+++ b/sys/dev/tc/px.c   Wed Jun 08 22:33:56 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: px.c,v 1.23 2005/02/27 00:27:49 perry Exp $    */
+/*     $NetBSD: px.c,v 1.24 2005/06/08 22:33:56 he Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.23 2005/02/27 00:27:49 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: px.c,v 1.24 2005/06/08 22:33:56 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -378,7 +378,8 @@
                }
 
                sxc = si->si_sxc;
-               memset((void *)sxc->sxc_done, 0, sizeof(sxc->sxc_done));
+               memset((void *)__UNVOLATILE(sxc->sxc_done), 0,
+                       sizeof(sxc->sxc_done));
                sxc->sxc_head = 0;
                sxc->sxc_tail = 0;
                sxc->sxc_nreject = 0;



Home | Main Index | Thread Index | Old Index