Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/rcons make this compile after Wcast-qual
details: https://anonhg.NetBSD.org/src/rev/0c68c3242236
branches: trunk
changeset: 581443:0c68c3242236
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jun 01 17:05:16 2005 +0000
description:
make this compile after Wcast-qual
diffstat:
sys/dev/rcons/rcons.h | 6 +++---
sys/dev/rcons/rcons_subr.c | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (65 lines):
diff -r c79ecbca8b01 -r 0c68c3242236 sys/dev/rcons/rcons.h
--- a/sys/dev/rcons/rcons.h Wed Jun 01 16:53:51 2005 +0000
+++ b/sys/dev/rcons/rcons.h Wed Jun 01 17:05:16 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rcons.h,v 1.14 2005/02/04 02:10:47 perry Exp $ */
+/* $NetBSD: rcons.h,v 1.15 2005/06/01 17:05:16 drochner Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -103,12 +103,12 @@
/* rcons_subr.c */
void rcons_init_ops(struct rconsole *rc);
-void rcons_puts(struct rconsole *, unsigned char *, int);
+void rcons_puts(struct rconsole *, const unsigned char *, int);
void rcons_pctrl(struct rconsole *, int);
void rcons_esc(struct rconsole *, int);
void rcons_doesc(struct rconsole *, int);
void rcons_sgresc(struct rconsole *, int);
-void rcons_text(struct rconsole *, unsigned char *, int);
+void rcons_text(struct rconsole *, const unsigned char *, int);
void rcons_cursor(struct rconsole *);
void rcons_invert(struct rconsole *, int);
void rcons_clear2eop(struct rconsole *);
diff -r c79ecbca8b01 -r 0c68c3242236 sys/dev/rcons/rcons_subr.c
--- a/sys/dev/rcons/rcons_subr.c Wed Jun 01 16:53:51 2005 +0000
+++ b/sys/dev/rcons/rcons_subr.c Wed Jun 01 17:05:16 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rcons_subr.c,v 1.13 2005/02/27 00:27:48 perry Exp $ */
+/* $NetBSD: rcons_subr.c,v 1.14 2005/06/01 17:05:16 drochner Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rcons_subr.c,v 1.13 2005/02/27 00:27:48 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rcons_subr.c,v 1.14 2005/06/01 17:05:16 drochner Exp $");
#include <sys/param.h>
#ifdef _KERNEL
@@ -105,11 +105,11 @@
void
rcons_puts(rc, str, n)
struct rconsole *rc;
- unsigned char *str;
+ const unsigned char *str;
int n;
{
int c, i, j;
- unsigned char *cp;
+ const unsigned char *cp;
/* Jump scroll */
/* XXX maybe this should be an option? */
@@ -535,7 +535,7 @@
void
rcons_text(rc, str, n)
struct rconsole *rc;
- unsigned char *str;
+ const unsigned char *str;
int n;
{
u_int uc;
Home |
Main Index |
Thread Index |
Old Index