Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Make it compile with -DDEBUG again.



details:   https://anonhg.NetBSD.org/src/rev/207e8941ec24
branches:  trunk
changeset: 335665:207e8941ec24
user:      phx <phx%NetBSD.org@localhost>
date:      Mon Jan 19 20:10:27 2015 +0000

description:
Make it compile with -DDEBUG again.

diffstat:

 sys/arch/amiga/dev/sbic.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 87654c06509a -r 207e8941ec24 sys/arch/amiga/dev/sbic.c
--- a/sys/arch/amiga/dev/sbic.c Mon Jan 19 19:46:08 2015 +0000
+++ b/sys/arch/amiga/dev/sbic.c Mon Jan 19 20:10:27 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbic.c,v 1.73 2014/08/07 08:59:42 joerg Exp $ */
+/*     $NetBSD: sbic.c,v 1.74 2015/01/19 20:10:27 phx Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -81,7 +81,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.73 2014/08/07 08:59:42 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.74 2015/01/19 20:10:27 phx Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1231,11 +1231,17 @@
 sbicxfin(sbic_regmap_t regs, int len, void *bp)
 {
        int wait;
+       u_char orig_csr, csr, asr;
        u_char *buf;
-       u_char orig_csr, csr, asr;
+#ifdef DEBUG
+       u_char *obp;
+#endif
 
        wait = sbic_data_wait;
        buf = bp;
+#ifdef DEBUG
+       obp = bp;
+#endif
 
        GET_SBIC_csr (regs, orig_csr);
        __USE(orig_csr);



Home | Main Index | Thread Index | Old Index