Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons For now, #include wsdisplay.h to get the defi...



details:   https://anonhg.NetBSD.org/src/rev/7424e0e6ecd3
branches:  trunk
changeset: 354329:7424e0e6ecd3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jun 12 06:59:19 2017 +0000

description:
For now, #include wsdisplay.h to get the definition of NWSDISPLAY

The symbol is currently used to conditionally include members of a
data structure, so without this include there could be different
structure definitions, with different sizes, and data corruption is
likely.

XXX For cleaner modularization, all of the needs-flag entries in
XXX wscons should be removed.

diffstat:

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

diffs (22 lines):

diff -r c95dc7ae8591 -r 7424e0e6ecd3 sys/dev/wscons/wsbell.c
--- a/sys/dev/wscons/wsbell.c   Mon Jun 12 03:03:22 2017 +0000
+++ b/sys/dev/wscons/wsbell.c   Mon Jun 12 06:59:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsbell.c,v 1.2 2017/06/11 22:14:55 pgoyette Exp $ */
+/* $NetBSD: wsbell.c,v 1.3 2017/06/12 06:59:19 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2017 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -107,10 +107,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsbell.c,v 1.2 2017/06/11 22:14:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsbell.c,v 1.3 2017/06/12 06:59:19 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "wsmux.h"
+#include "wsdisplay.h"
 #endif
 
 #include <sys/param.h>



Home | Main Index | Thread Index | Old Index