Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dev/g2 this ain't python, thanks gcc6.



details:   https://anonhg.NetBSD.org/src/rev/76489d68eab5
branches:  trunk
changeset: 830283:76489d68eab5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 03 23:27:51 2018 +0000

description:
this ain't python, thanks gcc6.

diffstat:

 sys/arch/dreamcast/dev/g2/aica.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 418e8142449b -r 76489d68eab5 sys/arch/dreamcast/dev/g2/aica.c
--- a/sys/arch/dreamcast/dev/g2/aica.c  Sat Mar 03 22:50:17 2018 +0000
+++ b/sys/arch/dreamcast/dev/g2/aica.c  Sat Mar 03 23:27:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aica.c,v 1.23 2017/07/25 23:18:04 nat Exp $    */
+/*     $NetBSD: aica.c,v 1.24 2018/03/03 23:27:51 christos Exp $       */
 
 /*
  * Copyright (c) 2003 SHIMIZU Ryo <ryo%misakimix.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.23 2017/07/25 23:18:04 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.24 2018/03/03 23:27:51 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -414,8 +414,9 @@
 
        if (len) {
                p = (uint8_t *)buf;
-               for (i = 0; i < len; i++)
+               for (i = 0; i < len; i++) {
                        *p++ = *src++; src++;
+               }
 
                aica_g2fifo_wait();
                bus_space_write_region_4(sc->sc_memt, sc->sc_aica_memh,



Home | Main Index | Thread Index | Old Index