From e0103fb04c2f7777532a4489ccf54049f272eaab Mon Sep 17 00:00:00 2001 From: gdamore Date: Tue, 21 Mar 2006 21:49:47 +0000 Subject: [PATCH] Use const char * in yamon_print(). --- sys/arch/evbmips/evbmips/yamon.c | 6 +++--- sys/arch/evbmips/include/yamon.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/evbmips/evbmips/yamon.c b/sys/arch/evbmips/evbmips/yamon.c index b46326d4c1b5..099f48192e0f 100644 --- a/sys/arch/evbmips/evbmips/yamon.c +++ b/sys/arch/evbmips/evbmips/yamon.c @@ -1,4 +1,4 @@ -/* $NetBSD: yamon.c,v 1.5 2005/12/11 12:17:11 christos Exp $ */ +/* $NetBSD: yamon.c,v 1.6 2006/03/21 21:49:47 gdamore Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -38,7 +38,7 @@ /* XXX move to arch/mips/yamon/yamon.c or similar? */ #include -__KERNEL_RCSID(0, "$NetBSD: yamon.c,v 1.5 2005/12/11 12:17:11 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: yamon.c,v 1.6 2006/03/21 21:49:47 gdamore Exp $"); #include #include @@ -109,7 +109,7 @@ yamon_getenv(const char *name) } void -yamon_print(char *str) +yamon_print(const char *str) { YAMON_PRINT(str); diff --git a/sys/arch/evbmips/include/yamon.h b/sys/arch/evbmips/include/yamon.h index 1e26634e4d8d..f1f5617183fd 100644 --- a/sys/arch/evbmips/include/yamon.h +++ b/sys/arch/evbmips/include/yamon.h @@ -1,4 +1,4 @@ -/* $NetBSD: yamon.h,v 1.4 2005/12/11 12:17:11 christos Exp $ */ +/* $NetBSD: yamon.h,v 1.5 2006/03/21 21:49:47 gdamore Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -64,7 +64,7 @@ typedef void (*t_yamon_print_count)(uint32_t port, char *s, uint32_t count); typedef void (*t_yamon_exit)(uint32_t rc); #define YAMON_EXIT(rc) ((t_yamon_exit)(YAMON_FUNC(YAMON_EXIT_OFS)))(rc) -typedef void (*t_yamon_print)(uint32_t port, char *s); +typedef void (*t_yamon_print)(uint32_t port, const char *s); #define YAMON_PRINT(s) ((t_yamon_print)(YAMON_FUNC(YAMON_PRINT_OFS)))(0, s) typedef int (*t_yamon_getchar)(uint32_t port, char *ch); @@ -87,7 +87,7 @@ typedef struct { #define SYSCON_BOARD_PCI_FREQ_KHZ_ID 36 /* UINT32 */ const char *yamon_getenv(const char *); -void yamon_print(char *); +void yamon_print(const char *); void yamon_exit(uint32_t); int yamon_setcpufreq(int);