summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-02-12 12:44:19 +0000
committerbde <bde@FreeBSD.org>1999-02-12 12:44:19 +0000
commit5382007cd05622ddb116cc28ef85e850353acb71 (patch)
treeef6261d7d809292e195ae85c5721700c50ef0d4d
parenta24330a338e0b16ec2d489159bfc307d6caa942a (diff)
downloadFreeBSD-src-5382007cd05622ddb116cc28ef85e850353acb71.zip
FreeBSD-src-5382007cd05622ddb116cc28ef85e850353acb71.tar.gz
Fixed -Wcast-qual warnings.
-rw-r--r--sys/ddb/db_aout.c8
-rw-r--r--sys/ddb/db_sym.c6
-rw-r--r--sys/ddb/db_sym.h4
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));
OpenPOWER on IntegriCloud