Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Adapt to compiling with -Wcast-qual by ...



details:   https://anonhg.NetBSD.org/src/rev/6eff1d53e3f8
branches:  trunk
changeset: 581879:6eff1d53e3f8
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 09 06:27:18 2005 +0000

description:
Adapt to compiling with -Wcast-qual by adding const to a function
parameter of db_mach_cpu().

diffstat:

 sys/arch/alpha/alpha/db_interface.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8092b7047627 -r 6eff1d53e3f8 sys/arch/alpha/alpha/db_interface.c
--- a/sys/arch/alpha/alpha/db_interface.c       Thu Jun 09 02:19:59 2005 +0000
+++ b/sys/arch/alpha/alpha/db_interface.c       Thu Jun 09 06:27:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.19 2005/06/01 16:13:04 drochner Exp $ */
+/* $NetBSD: db_interface.c,v 1.20 2005/06/09 06:27:18 he Exp $ */
 
 /* 
  * Mach Operating System
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.19 2005/06/01 16:13:04 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.20 2005/06/09 06:27:18 he Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -89,7 +89,7 @@
 db_regs_t *ddb_regp;
 
 #if defined(MULTIPROCESSOR)
-void   db_mach_cpu __P((db_expr_t, int, db_expr_t, char *));
+void   db_mach_cpu __P((db_expr_t, int, db_expr_t, const char *));
 #endif
 
 const struct db_command db_machine_command_table[] = {
@@ -276,7 +276,7 @@
        db_expr_t       addr;
        int             have_addr;
        db_expr_t       count;
-       char *          modif;
+       const char *            modif;
 {
        struct cpu_info *ci;
 



Home | Main Index | Thread Index | Old Index