From: Jan Kratochvil Date: Thu, 14 Nov 2013 19:55:41 +0000 (+0100) Subject: Code cleanup: Remove const in prototype X-Git-Tag: elfutils-0.158~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c1a53b657ef31b168928925884c01a7e4bcaf0c;p=thirdparty%2Felfutils.git Code cleanup: Remove const in prototype Signed-off-by: Jan Kratochvil --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 561017b11..990138051 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,11 @@ +2013-11-14 Jan Kratochvil + + Code cleanup: Remove const in prototype + * dwfl_frame_regs.c (dwfl_thread_state_registers): Remove const from + firstreg. + * libdwfl.h (dwfl_thread_state_registers): Likewise. + * linux-pid-attach.c (pid_thread_state_registers_cb): Likewise. + 2013-11-14 Jan Kratochvil Fix dwfl_attach_state machine->elf. diff --git a/libdwfl/dwfl_frame_regs.c b/libdwfl/dwfl_frame_regs.c index 927bc15bf..10803fe73 100644 --- a/libdwfl/dwfl_frame_regs.c +++ b/libdwfl/dwfl_frame_regs.c @@ -29,7 +29,7 @@ #include "libdwflP.h" bool -dwfl_thread_state_registers (Dwfl_Thread *thread, const int firstreg, +dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg, unsigned nregs, const Dwarf_Word *regs) { Dwfl_Frame *state = thread->unwound; diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 303f79cc9..c1a0fb996 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -657,7 +657,7 @@ Dwfl_Thread *dwfl_frame_thread (Dwfl_Frame *state) For every known continuous block of registers + + Code cleanup: Remove const in prototype + * libebl.h (ebl_tid_registers_t): Remove const from firstreg. + 2013-11-07 Jan Kratochvil Mark Wielaard diff --git a/libebl/libebl.h b/libebl/libebl.h index 622f9e8d7..045a19809 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -384,10 +384,8 @@ extern int ebl_auxv_info (Ebl *ebl, GElf_Xword a_type, __nonnull_attribute__ (1, 3, 4); /* Callback type for ebl_set_initial_registers_tid. */ -typedef bool (ebl_tid_registers_t) (const int firstreg, - unsigned nregs, - const Dwarf_Word *regs, - void *arg) +typedef bool (ebl_tid_registers_t) (int firstreg, unsigned nregs, + const Dwarf_Word *regs, void *arg) __nonnull_attribute__ (3); /* Callback to fetch process data from live TID.