]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Code cleanup: Remove const in prototype
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Nov 2013 19:55:41 +0000 (20:55 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Nov 2013 19:55:41 +0000 (20:55 +0100)
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
libdwfl/ChangeLog
libdwfl/dwfl_frame_regs.c
libdwfl/libdwfl.h
libdwfl/linux-pid-attach.c
libebl/ChangeLog
libebl/libebl.h

index 561017b11b40b64b09821763129d1efcb376aba6..990138051a8cf40eebfe7d0a9a4fb6a764c53ecc 100644 (file)
@@ -1,3 +1,11 @@
+2013-11-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       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  <jan.kratochvil@redhat.com>
 
        Fix dwfl_attach_state machine->elf.
index 927bc15bf67f9186c776937e5587a369179d6d46..10803fe73f7501df3b0191493256a7e410f2efe1 100644 (file)
@@ -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;
index 303f79cc9f124e7d2e6e922a1d177445fc5eb8f0..c1a0fb996914d7df399296766b92c857c9d70654 100644 (file)
@@ -657,7 +657,7 @@ Dwfl_Thread *dwfl_frame_thread (Dwfl_Frame *state)
    For every known continuous block of registers <FIRSTREG..FIRSTREG+NREGS)
    (inclusive..exclusive) set their content to REGS (array of NREGS items).
    Function returns false if any of the registers has invalid number.  */
-bool dwfl_thread_state_registers (Dwfl_Thread *thread, const int firstreg,
+bool dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg,
                                   unsigned nregs, const Dwarf_Word *regs)
   __nonnull_attribute__ (1, 4);
 
index b4f31654b8ca3a0d0ad4639a85c50a122d4bca9c..ca8214467184838cb5cd229fbc5bc052203c9616 100644 (file)
@@ -198,10 +198,8 @@ pid_next_thread (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg,
 /* Implement the ebl_set_initial_registers_tid setfunc callback.  */
 
 static bool
-pid_thread_state_registers_cb (const int firstreg,
-                              unsigned nregs,
-                              const Dwarf_Word *regs,
-                              void *arg)
+pid_thread_state_registers_cb (int firstreg, unsigned nregs,
+                              const Dwarf_Word *regs, void *arg)
 {
   Dwfl_Thread *thread = (Dwfl_Thread *) arg;
   return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs);
index 57f9f46dbf01790ca698a67286ea4368c28920cd..eed4481e1d278f9618c831269d8b173bc4979688 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup: Remove const in prototype
+       * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
+
 2013-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Mark Wielaard  <mjw@redhat.com>
 
index 622f9e8d78c4b12a5b83e4d2092baf45bb4b85dc..045a198092cefba033be2f1e42d049436b6899a8 100644 (file)
@@ -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.