From a969376fb0c437c705ffa6ba74f69287c2b477ec Mon Sep 17 00:00:00 2001 From: Luis Felipe Strano Moraes Date: Tue, 20 Dec 2011 07:11:46 -0800 Subject: [PATCH] Removing warnings when compiling on i686 platform. --- libkmod/libkmod-elf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.47.3