Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Consistently ifdef a variable and all uses



details:   https://anonhg.NetBSD.org/src/rev/f5e8a8ea5580
branches:  trunk
changeset: 790888:f5e8a8ea5580
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 20:55:24 2013 +0000

description:
Consistently ifdef a variable and all uses

diffstat:

 sys/dev/wscons/wscons_rinit.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 17718c1446ec -r f5e8a8ea5580 sys/dev/wscons/wscons_rinit.c
--- a/sys/dev/wscons/wscons_rinit.c     Fri Oct 25 20:53:02 2013 +0000
+++ b/sys/dev/wscons/wscons_rinit.c     Fri Oct 25 20:55:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wscons_rinit.c,v 1.6 2005/12/11 12:24:12 christos Exp $ */
+/* $NetBSD: wscons_rinit.c,v 1.7 2013/10/25 20:55:24 martin Exp $ */
 
 /*
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wscons_rinit.c,v 1.6 2005/12/11 12:24:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wscons_rinit.c,v 1.7 2013/10/25 20:55:24 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,7 +57,9 @@
 void
 rcons_initfont(struct rcons *rc, struct raster_font *fp)
 {
+#if !defined(MSBYTE_FIRST) && !defined(MSBIT_FIRST) /* XXX other cases */
        static int initfontdone;
+#endif
 
        rc->rc_font = fp;
 
@@ -87,9 +89,9 @@
                        }
                }
        }
-#endif
 
        initfontdone = 1;
+#endif
 }
 
 void



Home | Main Index | Thread Index | Old Index