Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/shark/shark move code inside ifdef
details: https://anonhg.NetBSD.org/src/rev/dde01055775f
branches: trunk
changeset: 791125:dde01055775f
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 06 02:35:26 2013 +0000
description:
move code inside ifdef
diffstat:
sys/arch/shark/shark/consinit.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r be64f43a6083 -r dde01055775f sys/arch/shark/shark/consinit.c
--- a/sys/arch/shark/shark/consinit.c Wed Nov 06 02:34:10 2013 +0000
+++ b/sys/arch/shark/shark/consinit.c Wed Nov 06 02:35:26 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.12 2012/10/13 17:58:53 jdc Exp $ */
+/* $NetBSD: consinit.c,v 1.13 2013/11/06 02:35:26 christos Exp $ */
/*
* Copyright (c) 1998
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.12 2012/10/13 17:58:53 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.13 2013/11/06 02:35:26 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -103,13 +103,11 @@
void
consinit(void)
{
- struct consdev *cp;
static int initted;
if (initted)
return;
initted = 1;
- cp = NULL;
#if (NVGA > 0)
/* The font built into the VGA ROM is broken: all the characters
@@ -150,7 +148,7 @@
#else /* NVGA */
#if (NOFCONS > 0)
- cp = &ofcons;
+ struct consdev *cp = &ofcons;
ofcons_cnprobe(cp);
if (cp->cn_pri == CN_INTERNAL) {
ofcons_cninit(cp);
Home |
Main Index |
Thread Index |
Old Index