ehdr has global scope in elflink.c, it doesn't need to be passed around.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>

diff --git a/elflink.c b/elflink.c
index 5a57358..15e47cb 100644
--- a/elflink.c
+++ b/elflink.c
@@ -237,7 +237,7 @@ static void assemble_path(char *dst, const char *fmt, ...)
  * which contain hugetlb information.
  */
 
-static void parse_phdrs(Elf_Ehdr *ehdr)
+static void parse_phdrs()
 {
        Elf_Phdr *phdr = (Elf_Phdr *)((char *)ehdr + ehdr->e_phoff);
        int i;
@@ -898,7 +898,7 @@ static void __attribute__ ((constructor)) 
setup_elflink(void)
        if (check_env())
                return;
 
-       parse_phdrs(ehdr);
+       parse_phdrs();
 
        if (htlb_num_segs == 0) {
                DEBUG("Executable is not linked for hugepage segments\n");


-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to