diff options
author | Luis Felipe Strano Moraes <lfelipe@profusion.mobi> | 2011-12-20 07:11:46 -0800 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-20 13:15:32 -0200 |
commit | a969376fb0c437c705ffa6ba74f69287c2b477ec (patch) | |
tree | 72ebbfa5447900cd4e01c090a650b984da7ecdf5 /libkmod/libkmod-elf.c | |
parent | b55df2ee0313da8c42605d9570da1d5c8e901132 (diff) | |
download | kmod-a969376fb0c437c705ffa6ba74f69287c2b477ec.tar.gz |
Removing warnings when compiling on i686 platform.
Diffstat (limited to 'libkmod/libkmod-elf.c')
-rw-r--r-- | libkmod/libkmod-elf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 0eb22b8..0eeb816 100644 --- a/libkmod/libkmod-elf.c +++ b/libkmod/libkmod-elf.c @@ -362,7 +362,7 @@ const void *kmod_elf_get_memory(const struct kmod_elf *elf) return elf->memory; } -static int kmod_elf_get_section(const struct kmod_elf *elf, const char *section, const void **buf, size_t *buf_size) +static int kmod_elf_get_section(const struct kmod_elf *elf, const char *section, const void **buf, uint64_t *buf_size) { uint64_t nameslen; const char *names = elf_get_strings_section(elf, &nameslen); @@ -395,7 +395,8 @@ static int kmod_elf_get_section(const struct kmod_elf *elf, const char *section, /* array will be allocated with strings in a single malloc, just free *array */ int kmod_elf_get_strings(const struct kmod_elf *elf, const char *section, char ***array) { - size_t i, j, size, count; + size_t i, j, count; + uint64_t size; const void *buf; const char *strings; char *s, **a; @@ -466,7 +467,8 @@ int kmod_elf_get_strings(const struct kmod_elf *elf, const char *section, char * /* array will be allocated with strings in a single malloc, just free *array */ int kmod_elf_get_modversions(const struct kmod_elf *elf, struct kmod_modversion **array) { - size_t off, offcrc, size, slen; + size_t off, offcrc, slen; + uint64_t size; struct kmod_modversion *a; const void *buf; char *itr; |