From 5382007cd05622ddb116cc28ef85e850353acb71 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 12 Feb 1999 12:44:19 +0000 Subject: Fixed -Wcast-qual warnings. --- sys/ddb/db_aout.c | 8 ++++---- sys/ddb/db_sym.c | 6 +++--- sys/ddb/db_sym.h | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/ddb/db_aout.c b/sys/ddb/db_aout.c index 411c42c..3daba33 100644 --- a/sys/ddb/db_aout.c +++ b/sys/ddb/db_aout.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_aout.c,v 1.24 1999/01/27 23:45:37 dillon Exp $ + * $Id: db_aout.c,v 1.25 1999/02/12 12:15:07 bde Exp $ */ /* @@ -204,9 +204,9 @@ X_db_symbol_values(symtab, sym, namep, valuep) const char **namep; db_expr_t *valuep; { - register struct nlist *sp; + register const struct nlist *sp; - sp = (struct nlist *)sym; + sp = (const struct nlist *)sym; if (namep) *namep = sp->n_un.n_name; if (valuep) @@ -294,7 +294,7 @@ X_db_sym_numargs(symtab, cursym, nargp, argnamep) if (cursym == NULL) return FALSE; - addr = ((struct nlist *)cursym)->n_value; + addr = ((const struct nlist *)cursym)->n_value; sp = (struct nlist *)symtab->start; ep = (struct nlist *)symtab->end; diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 847a9c7..c791c3b 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_sym.c,v 1.28 1999/01/27 19:00:49 dillon Exp $ + * $Id: db_sym.c,v 1.29 1999/01/27 23:45:37 dillon Exp $ */ /* @@ -98,8 +98,8 @@ db_qualify(sym, symtabname) boolean_t db_eqname(src, dst, c) - char *src; - char *dst; + const char *src; + const char *dst; int c; { if (!strcmp(src, dst)) diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index 611bd28..51d579b 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_sym.h,v 1.16 1999/01/27 19:00:49 dillon Exp $ + * $Id: db_sym.h,v 1.17 1999/01/27 23:45:37 dillon Exp $ */ #ifndef _DDB_DB_SYM_H_ @@ -86,7 +86,7 @@ void db_symbol_values __P((c_db_sym_t, const char **, db_expr_t *)); db_symbol_values(db_search_symbol(val,DB_STGY_XTRN,offp),namep,0) /* ditto, but no locals */ -int db_eqname __P((char *, char *, int)); +int db_eqname __P((const char *, const char *, int)); /* strcmp, modulo leading char */ void db_printsym __P((db_expr_t, db_strategy_t)); -- cgit v1.1