From: Luis Felipe Strano Moraes Date: Tue, 20 Dec 2011 15:11:46 +0000 (-0800) Subject: Removing warnings when compiling on i686 platform. X-Git-Tag: v2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a969376fb0c437c705ffa6ba74f69287c2b477ec;p=thirdparty%2Fkmod.git Removing warnings when compiling on i686 platform. --- diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 0eb22b8f..0eeb8169 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;