Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/bebox Add casts for -Wall.



details:   https://anonhg.NetBSD.org/src/rev/eb37eb09bf33
branches:  trunk
changeset: 473924:eb37eb09bf33
user:      sakamoto <sakamoto%NetBSD.org@localhost>
date:      Tue Jun 22 02:04:06 1999 +0000

description:
Add casts for -Wall.

diffstat:

 sys/arch/bebox/bebox/machdep.c      |  10 +++++-----
 sys/arch/bebox/isa/isadma_machdep.c |  14 +++++++-------
 sys/arch/bebox/pci/pfb.c            |   4 ++--
 3 files changed, 14 insertions(+), 14 deletions(-)

diffs (101 lines):

diff -r b3bf816eca4d -r eb37eb09bf33 sys/arch/bebox/bebox/machdep.c
--- a/sys/arch/bebox/bebox/machdep.c    Tue Jun 22 01:48:33 1999 +0000
+++ b/sys/arch/bebox/bebox/machdep.c    Tue Jun 22 02:04:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.38 1999/05/26 19:16:30 thorpej Exp $     */
+/*     $NetBSD: machdep.c,v 1.39 1999/06/22 02:04:06 sakamoto Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -337,7 +337,7 @@
        pmap_bootstrap(startkernel, endkernel);
 
 #ifdef DDB
-       ddb_init((int)(endsym - startsym), startsym, endsym);
+       ddb_init((int)((u_int)endsym - (u_int)startsym), startsym, endsym);
 #endif
 #if NIPKDB > 0
        /*
@@ -582,13 +582,13 @@
        int type;
 {
        struct btinfo_common *bt;
-       void *help = (void *)bootinfo;
+       struct btinfo_common *help = (struct btinfo_common *)bootinfo;
 
        do {
-               bt = (struct btinfo_common *)help;
+               bt = help;
                if (bt->type == type)
                        return (help);
-               help += bt->next;
+               help = (struct btinfo_common *)((char*)help + bt->next);
        } while (bt->next &&
                (size_t)help < (size_t)bootinfo + sizeof (bootinfo));
 
diff -r b3bf816eca4d -r eb37eb09bf33 sys/arch/bebox/isa/isadma_machdep.c
--- a/sys/arch/bebox/isa/isadma_machdep.c       Tue Jun 22 01:48:33 1999 +0000
+++ b/sys/arch/bebox/isa/isadma_machdep.c       Tue Jun 22 02:04:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isadma_machdep.c,v 1.14 1999/03/19 04:58:46 cgd Exp $  */
+/*     $NetBSD: isadma_machdep.c,v 1.15 1999/06/22 02:04:07 sakamoto Exp $     */
 
 #define ISA_DMA_STATS
 
@@ -496,16 +496,16 @@
                        /*
                         * Copy the caller's buffer to the bounce buffer.
                         */
-                       bcopy(cookie->id_origbuf + offset,
-                           cookie->id_bouncebuf + offset, len);
+                       bcopy((char *)cookie->id_origbuf + offset,
+                           (char *)cookie->id_bouncebuf + offset, len);
                }
 
                if (ops & BUS_DMASYNC_POSTREAD) {
                        /*
                         * Copy the bounce buffer to the caller's buffer.
                         */
-                       bcopy(cookie->id_bouncebuf + offset,
-                           cookie->id_origbuf + offset, len);
+                       bcopy((char *)cookie->id_bouncebuf + offset,
+                           (char *)cookie->id_origbuf + offset, len);
                }
 
                /*
@@ -527,7 +527,7 @@
                         * Copy the caller's buffer to the bounce buffer.
                         */
                        m_copydata(m0, offset, len,
-                           cookie->id_bouncebuf + offset);
+                           (char *)cookie->id_bouncebuf + offset);
                }
 
                if (ops & BUS_DMASYNC_POSTREAD) {
@@ -550,7 +550,7 @@
                                minlen = len < m->m_len - moff ?
                                    len : m->m_len - moff;
 
-                               bcopy(cookie->id_bouncebuf + offset,
+                               bcopy((char *)cookie->id_bouncebuf + offset,
                                    mtod(m, caddr_t) + moff, minlen);
 
                                moff = 0;
diff -r b3bf816eca4d -r eb37eb09bf33 sys/arch/bebox/pci/pfb.c
--- a/sys/arch/bebox/pci/pfb.c  Tue Jun 22 01:48:33 1999 +0000
+++ b/sys/arch/bebox/pci/pfb.c  Tue Jun 22 02:04:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfb.c,v 1.3 1999/01/11 21:54:23 drochner Exp $ */
+/*     $NetBSD: pfb.c,v 1.4 1999/06/22 02:04:07 sakamoto Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -143,7 +143,7 @@
                printf(": cannot map framebuffer\n");
                return;
        }
-       dc->dc_raster.pixels = mapiodev(dc->dc_paddr,
+       dc->dc_raster.pixels = (u_int32_t *)mapiodev(dc->dc_paddr,
                                dc->dc_linebytes * dc->dc_height);
 
        printf(": %d x %d, %dbpp\n",



Home | Main Index | Thread Index | Old Index