diff options
author | Andreas Robinson <andr345@gmail.com> | 2009-05-14 18:54:46 +0200 |
---|---|---|
committer | Andreas Robinson <andr345@gmail.com> | 2009-05-15 15:59:25 +0200 |
commit | 4646064c0335e9c71c9124bacabd6b5e2827e3e9 (patch) | |
tree | bc3e631a1aaa594fe830473412b8b84470c38229 | |
parent | a85e4c165f45767f09536f5baf9fe80ffedcc25a (diff) | |
download | module-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.c | 2 | ||||
-rw-r--r-- | elfops.h | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -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; @@ -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); |