C90 compliance, except variadic macros and TODOs
[centaur.git] / src / elfops / section-name.c
diff --git a/src/elfops/section-name.c b/src/elfops/section-name.c
deleted file mode 100644 (file)
index 4832db9..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <stdlib.h>
-#include <libelfu/libelfu.h>
-
-
-char* elfu_eScnName(Elf *e, Elf_Scn *scn)
-{
-  size_t shstrndx;
-  GElf_Shdr shdr;
-
-  if (elf_getshdrstrndx(e, &shstrndx) != 0) {
-    return NULL;
-  }
-
-  if (gelf_getshdr(scn, &shdr) != &shdr) {
-    return NULL;
-  }
-
-  /* elf_strptr returns NULL if there was an error */
-  return elf_strptr(e, shstrndx, shdr.sh_name);
-}