summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-09-21 17:29:36 +0000
committermarkm <markm@FreeBSD.org>2002-09-21 17:29:36 +0000
commit62df99fb84d18caea18a8bad7a36cd2309af39ec (patch)
tree7db830a7000a942d292efa49a5c613b348f7410f /sys/ddb
parent40044052d8ec7b4c490491d39902efbf7a0b68a1 (diff)
downloadFreeBSD-src-62df99fb84d18caea18a8bad7a36cd2309af39ec.zip
FreeBSD-src-62df99fb84d18caea18a8bad7a36cd2309af39ec.tar.gz
Constify to kill some warnings.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_command.c2
-rw-r--r--sys/ddb/ddb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 6771abe..cf3c6b7 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -475,7 +475,7 @@ db_command_loop()
void
db_error(s)
- char *s;
+ const char *s;
{
if (s)
db_printf("%s", s);
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index 1eb87ba..b706cc5 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -83,7 +83,7 @@ void db_check_interrupt(void);
void db_clear_watchpoints(void);
db_addr_t db_disasm(db_addr_t loc, boolean_t altfmt);
/* instruction disassembler */
-void db_error(char *s);
+void db_error(const char *s);
int db_expression(db_expr_t *valuep);
int db_get_variable(db_expr_t *valuep);
void db_iprintf(const char *,...) __printflike(1, 2);
OpenPOWER on IntegriCloud