Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev cleanup const/volatile/shadowing



details:   https://anonhg.NetBSD.org/src/rev/e1a71b77fac6
branches:  trunk
changeset: 581693:e1a71b77fac6
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 03 21:38:05 2005 +0000

description:
cleanup const/volatile/shadowing

diffstat:

 sys/arch/macppc/dev/z8530tty.c |  6 +++---
 sys/arch/macppc/dev/zs.c       |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 20a702d70da3 -r e1a71b77fac6 sys/arch/macppc/dev/z8530tty.c
--- a/sys/arch/macppc/dev/z8530tty.c    Fri Jun 03 21:22:34 2005 +0000
+++ b/sys/arch/macppc/dev/z8530tty.c    Fri Jun 03 21:38:05 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: z8530tty.c,v 1.21 2003/12/04 13:05:16 keihan Exp $     */
+/*     $NetBSD: z8530tty.c,v 1.22 2005/06/03 21:38:05 matt Exp $       */
 
 /*-
  * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -137,7 +137,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.21 2003/12/04 13:05:16 keihan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: z8530tty.c,v 1.22 2005/06/03 21:38:05 matt Exp $");
 
 #include "opt_kgdb.h"
 
@@ -1398,7 +1398,7 @@
        struct tty *tp;
 {
        struct zs_chanstate *cs = zst->zst_cs;
-       int (*rint) __P((int c, struct tty *tp)) = tp->t_linesw->l_rint;
+       int (*rint)(int, struct tty *) = tp->t_linesw->l_rint;
        u_char *get, *end;
        u_int cc, scc;
        u_char rr1;
diff -r 20a702d70da3 -r e1a71b77fac6 sys/arch/macppc/dev/zs.c
--- a/sys/arch/macppc/dev/zs.c  Fri Jun 03 21:22:34 2005 +0000
+++ b/sys/arch/macppc/dev/zs.c  Fri Jun 03 21:38:05 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.32 2005/01/24 21:39:15 matt Exp $     */
+/*     $NetBSD: zs.c,v 1.33 2005/06/03 21:38:05 matt Exp $     */
 
 /*
  * Copyright (c) 1996, 1998 Bill Studenmund
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.32 2005/01/24 21:39:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.33 2005/06/03 21:38:05 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -971,7 +971,7 @@
        int c;
 
        if (zc) {
-               c = zs_getc((void *)zc);
+               c = zs_getc(__UNVOLATILE(zc));
        } else {
                char ch = 0;
                OF_read(stdin, &ch, 1);
@@ -989,7 +989,7 @@
        volatile struct zschan *zc = zs_conschan;
 
        if (zc) {
-               zs_putc((void *)zc, c);
+               zs_putc(__UNVOLATILE(zc), c);
        } else {
                char ch = c;
                OF_write(stdout, &ch, 1);



Home | Main Index | Thread Index | Old Index