Rename phdr to phdr_num to indicate it is the number of the program
header in question and not the program header itself. With the new
extracopy parameter, this helps clear up some code.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
---
elflink.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/elflink.c b/elflink.c
index 6399b9f..f71a640 100644
--- a/elflink.c
+++ b/elflink.c
@@ -190,7 +190,7 @@ struct seg_info {
unsigned long filesz, memsz, extrasz;
int prot;
int fd;
- int phdr;
+ int phdr_num;
};
static struct seg_info htlb_seg_table[MAX_HTLB_SEGS];
@@ -348,7 +348,7 @@ static int get_shared_file_name(struct seg_info
*htlb_seg_info, char *file_path)
}
assemble_path(file_path, "%s/%s_%zd_%d", share_path, binary2,
- sizeof(unsigned long) * 8, htlb_seg_info->phdr);
+ sizeof(unsigned long) * 8, htlb_seg_info->phdr_num);
return 0;
}
@@ -563,7 +563,7 @@ static void parse_phdrs(Elf_Ehdr *ehdr)
htlb_seg_table[htlb_num_segs].filesz = filesz;
htlb_seg_table[htlb_num_segs].memsz = memsz;
htlb_seg_table[htlb_num_segs].prot = prot;
- htlb_seg_table[htlb_num_segs].phdr = i;
+ htlb_seg_table[htlb_num_segs].phdr_num = i;
get_extracopy(&htlb_seg_table[htlb_num_segs], phdr,
ehdr->e_phnum);
htlb_num_segs++;
--
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel