Simplify includes
[centaur.git] / src / elfops / section-in-segment.c
index 143c03f7a823336be60d556b198a784f2206d85a..7e6206b812cda5b79cdf4d79d23d31852b523bcb 100644 (file)
@@ -1,8 +1,4 @@
 #include <stdlib.h>
-
-#include <libelf/libelf.h>
-#include <libelf/gelf.h>
-
 #include <libelfu/libelfu.h>
 
 
@@ -25,7 +21,7 @@ Elf_Scn* elfu_eScnFirstInSegment(Elf *e, GElf_Phdr *phdr)
     }
 
     if (shdr.sh_offset == phdr->p_offset
-        && elfu_ePhdrContainsScn(phdr, &shdr)) {
+        && PHDR_CONTAINS_SCN_IN_MEMORY(phdr, &shdr)) {
       return scn;
     }
 
@@ -59,7 +55,7 @@ Elf_Scn* elfu_eScnLastInSegment(Elf *e, GElf_Phdr *phdr)
       continue;
     }
 
-    if (elfu_ePhdrContainsScn(phdr, &shdr)) {
+    if (PHDR_CONTAINS_SCN_IN_MEMORY(phdr, &shdr)) {
       if (!last) {
         last = scn;
       } else {