summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_elf.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 19:00:49 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 19:00:49 +0000
commit153f359f37030efa351afc646b7c20ec86c43ec3 (patch)
tree7b67d66dc20193bb5e4d5f537705271a8e01d2d7 /sys/ddb/db_elf.c
parenta6a88d5c196f23f81a6ab6cd6c895263496f9c8d (diff)
downloadFreeBSD-src-153f359f37030efa351afc646b7c20ec86c43ec3.zip
FreeBSD-src-153f359f37030efa351afc646b7c20ec86c43ec3.tar.gz
Changes to support -Wall, -Wcast-qual. Had to make physical code changes
in db_lookup() to avoid the *cp = 0 / *cp = ':' combo ( temporary nul-terminate-then-restore-original ) on a const char * string.
Diffstat (limited to 'sys/ddb/db_elf.c')
-rw-r--r--sys/ddb/db_elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c
index 38fe9e8..f5b4f4f 100644
--- a/sys/ddb/db_elf.c
+++ b/sys/ddb/db_elf.c
@@ -1,4 +1,4 @@
-/* $Id: db_elf.c,v 1.3 1998/08/17 08:06:31 dfr Exp $ */
+/* $Id: db_elf.c,v 1.4 1998/10/09 23:32:03 peter Exp $ */
/* $NetBSD: db_elf.c,v 1.4 1998/05/03 18:49:54 thorpej Exp $ */
/*-
@@ -218,7 +218,7 @@ db_elf_find_strtab(stab)
db_sym_t
X_db_lookup(stab, symstr)
db_symtab_t *stab;
- char *symstr;
+ const char *symstr;
{
Elf_Sym *symp, *symtab_start, *symtab_end;
char *strtab;
@@ -310,7 +310,7 @@ void
X_db_symbol_values(symtab, sym, namep, valuep)
db_symtab_t *symtab;
db_sym_t sym;
- char **namep;
+ const char **namep;
db_expr_t *valuep;
{
Elf_Sym *symp = (Elf_Sym *)sym;
OpenPOWER on IntegriCloud