diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2001-01-18 10:54:27 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2001-01-18 10:54:27 +0000 |
| commit | d5d431e8aeb664e85ed2111cccc7aecf28dda12b (patch) | |
| tree | 7eb4802abdfed08df6d40eadf7e8900b1294c109 /sys/ddb | |
| parent | b6fb3c0605528783ef341f0c426c4d9ba41eec51 (diff) | |
make db_[e]regs[] const
Diffstat (limited to 'sys/ddb')
| -rw-r--r-- | sys/ddb/db_print.c | 4 | ||||
| -rw-r--r-- | sys/ddb/db_variables.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c index b54e5bc29be..7f8e512e9f9 100644 --- a/sys/ddb/db_print.c +++ b/sys/ddb/db_print.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_print.c,v 1.14 2000/08/09 19:51:46 tv Exp $ */ +/* $NetBSD: db_print.c,v 1.15 2001/01/18 10:54:29 jdolecek Exp $ */ /* * Mach Operating System @@ -51,7 +51,7 @@ db_show_regs(addr, have_addr, count, modif) db_expr_t count; char * modif; { - struct db_variable *regp; + const struct db_variable *regp; db_expr_t value, offset; char * name; diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h index ea521bad069..9ef4e045857 100644 --- a/sys/ddb/db_variables.h +++ b/sys/ddb/db_variables.h @@ -1,4 +1,4 @@ -/* $NetBSD: db_variables.h,v 1.9 2001/01/17 19:50:04 jdolecek Exp $ */ +/* $NetBSD: db_variables.h,v 1.10 2001/01/18 10:54:29 jdolecek Exp $ */ /* * Mach Operating System @@ -47,8 +47,8 @@ struct db_variable { extern const struct db_variable db_vars[]; /* debugger variables */ extern const struct db_variable * const db_evars; -extern struct db_variable db_regs[]; /* machine registers */ -extern struct db_variable *db_eregs; +extern const struct db_variable db_regs[]; /* machine registers */ +extern const struct db_variable * const db_eregs; int db_find_variable __P((const struct db_variable **)); int db_get_variable __P((db_expr_t *)); |
