aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Robinson <andr345@gmail.com>2009-05-14 18:54:46 +0200
committerAndreas Robinson <andr345@gmail.com>2009-05-15 15:59:25 +0200
commit4646064c0335e9c71c9124bacabd6b5e2827e3e9 (patch)
treebc3e631a1aaa594fe830473412b8b84470c38229
parenta85e4c165f45767f09536f5baf9fe80ffedcc25a (diff)
downloadmodule-init-tools-4646064c0335e9c71c9124bacabd6b5e2827e3e9.tar.gz
elfops: hide elf_ident(), no users outside elfops
Signed-off-by: Andreas Robinson <andr345@gmail.com>
-rw-r--r--elfops.c2
-rw-r--r--elfops.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/elfops.c b/elfops.c
index 0fb492f..da2740e 100644
--- a/elfops.c
+++ b/elfops.c
@@ -39,7 +39,7 @@ static const char *skip_dot(const char *str)
/*
* Check ELF file header.
*/
-int elf_ident(void *file, unsigned long fsize, int *conv)
+static int elf_ident(void *file, unsigned long fsize, int *conv)
{
/* "\177ELF" <byte> where byte = 001 for 32-bit, 002 for 64 */
unsigned char *ident = file;
diff --git a/elfops.h b/elfops.h
index e131da0..7069d92 100644
--- a/elfops.h
+++ b/elfops.h
@@ -84,8 +84,6 @@ struct module_ops
extern struct module_ops mod_ops32, mod_ops64;
-int elf_ident(void *file, unsigned long fsize, int *conv);
-
struct elf_file *grab_elf_file(const char *pathname);
struct elf_file *grab_elf_file_fd(const char *pathname, int fd);
void release_elf_file(struct elf_file *file);