projects
/
centaur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor mdoel-related code
[centaur.git]
/
src
/
model
/
toFile.c
diff --git
a/src/model/toFile.c
b/src/model/toFile.c
index 399c25b6131fad0d7a285272fa1b68e0f5a7f208..0bfbd004468a6ef3f28cc8663f74d0a7ebd81a27 100644
(file)
--- a/
src/model/toFile.c
+++ b/
src/model/toFile.c
@@
-1,14
+1,12
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-
#include <libelf.h>
#include <gelf.h>
#include <libelf.h>
#include <gelf.h>
-
#include <libelfu/libelfu.h>
#include <libelfu/libelfu.h>
-static void
elfu_
modelToPhdrs(ElfuElf *me, Elf *e)
+static void modelToPhdrs(ElfuElf *me, Elf *e)
{
ElfuPhdr *mp;
size_t i;
{
ElfuPhdr *mp;
size_t i;
@@
-36,7
+34,7
@@
static void elfu_modelToPhdrs(ElfuElf *me, Elf *e)
-static void
elfu_
modelToSection(ElfuScn *ms, Elf *e)
+static void modelToSection(ElfuScn *ms, Elf *e)
{
Elf_Scn *scnOut;
{
Elf_Scn *scnOut;
@@
-74,7
+72,7
@@
static void elfu_modelToSection(ElfuScn *ms, Elf *e)
-void elfu_m
odel
ToElf(ElfuElf *me, Elf *e)
+void elfu_mToElf(ElfuElf *me, Elf *e)
{
ElfuScn *ms;
{
ElfuScn *ms;
@@
-95,12
+93,12
@@
void elfu_modelToElf(ElfuElf *me, Elf *e)
/* Sections */
CIRCLEQ_FOREACH(ms, &me->scnList, elem) {
/* Sections */
CIRCLEQ_FOREACH(ms, &me->scnList, elem) {
-
elfu_
modelToSection(ms, e);
+ modelToSection(ms, e);
}
/* PHDRs */
}
/* PHDRs */
-
elfu_
modelToPhdrs(me, e);
+ modelToPhdrs(me, e);
elf_flagelf(e, ELF_C_SET, ELF_F_DIRTY);
elf_flagelf(e, ELF_C_SET, ELF_F_DIRTY);