Fixed -Wcast-qual warnings.
This commit is contained in:
parent
ad6d29b0ac
commit
1e66367c66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43926
@ -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;
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user