From: Mark Kettenis Date: Thu, 20 May 2004 17:47:55 +0000 (+0000) Subject: * regset.h: Make prototype const-correct. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=144529d0d22409ef28eaf39c25767f817d017fdd;p=binutils-gdb.git * regset.h: Make prototype const-correct. * regset.c (regset_xmalloc): Make const-correct. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ff565e5557..dbf56dc6aa1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-05-20 Mark Kettenis + + * regset.h: Make prototype const-correct. + * regset.c (regset_xmalloc): Make const-correct. + 2004-05-20 Paul N. Hilfinger * symtab.h (SYMBOL_SEARCH_NAME): New definition. diff --git a/gdb/regset.c b/gdb/regset.c index 98fb6650c68..2ab40b87ebc 100644 --- a/gdb/regset.c +++ b/gdb/regset.c @@ -25,7 +25,7 @@ struct regset * -regset_xmalloc (void *descr, +regset_xmalloc (const void *descr, supply_regset_ftype *supply_regset, collect_regset_ftype *collect_regset) { diff --git a/gdb/regset.h b/gdb/regset.h index 1d4355c5943..b787c72a9be 100644 --- a/gdb/regset.h +++ b/gdb/regset.h @@ -52,7 +52,7 @@ struct regset pass NULL for COLLECT_REGSET. The object returned is allocated using xmalloc. */ -extern struct regset *regset_xmalloc (void *descr, +extern struct regset *regset_xmalloc (const void *descr, supply_regset_ftype *supply_regset, collect_regset_ftype *collect_regset);