Skip to content

Commit 65f1de3

Browse files
committed
cosmetics
1 parent 6e504d4 commit 65f1de3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

elfldr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ r_relative(elfldr_ctx_t *ctx, Elf64_Rela* rela) {
9696
* Parse a PT_LOAD program header.
9797
**/
9898
static int
99-
pt_load(elfldr_ctx_t *ctx, Elf64_Phdr *phdr) {
99+
data_load(elfldr_ctx_t *ctx, Elf64_Phdr *phdr) {
100100
void* data = ctx->base_mirror + phdr->p_vaddr;
101101

102102
if(!phdr->p_memsz) {
@@ -200,7 +200,7 @@ elfldr_load(pid_t pid, uint8_t *elf) {
200200
for(int i=0; i<ehdr->e_phnum && !error; i++) {
201201
switch(phdr[i].p_type) {
202202
case PT_LOAD:
203-
error = pt_load(&ctx, &phdr[i]);
203+
error = data_load(&ctx, &phdr[i]);
204204
break;
205205
}
206206
}

0 commit comments

Comments
 (0)