A few functions receive a pointer to the elf header without the intention of
modifying its contents. Mark this parameter with 'const' to reflect that.
Signed-off-by: Adam Litke <[EMAIL PROTECTED]>
---
elflink.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/elflink.c b/elflink.c
index 2b18620..5c4327c 100644
--- a/elflink.c
+++ b/elflink.c
@@ -340,7 +340,7 @@ static int get_shared_file_name(struct seg_info
*htlb_seg_info, char *file_path)
}
/* Find the .dynamic program header */
-static int find_dynamic(Elf_Dyn **dyntab, Elf_Phdr *phdr, int phnum)
+static int find_dynamic(Elf_Dyn **dyntab, const Elf_Phdr *phdr, int phnum)
{
int i = 1;
@@ -429,7 +429,7 @@ static inline int keep_symbol(Elf_Sym *s, void *start, void
*end)
* include these initialized variables in our copy.
*/
-static void get_extracopy(struct seg_info *seg, Elf_Phdr *phdr, int phnum)
+static void get_extracopy(struct seg_info *seg, const Elf_Phdr *phdr, int
phnum)
{
Elf_Dyn *dyntab; /* dynamic segment table */
Elf_Sym *symtab = NULL; /* dynamic symbol table */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel