fix a couple of innocuous compiler warnings

MFC after:	3 days
This commit is contained in:
Luigi Rizzo 2009-01-06 14:21:17 +00:00
parent d423f266c4
commit 14560a3610
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186826
2 changed files with 4 additions and 3 deletions

View File

@ -43,12 +43,13 @@
*/
int
ef_reloc(struct elf_file *ef, const void *reldata, int reltype, Elf_Off relbase,
Elf_Off dataoff, size_t len, void *dest)
Elf_Off dataoff, size_t len, void *_dest)
{
Elf_Addr *where, addr, addend;
Elf_Size rtype, symidx;
const Elf_Rel *rel;
const Elf_Rela *rela;
char *dest = _dest;
switch (reltype) {
case EF_RELOC_REL:

View File

@ -133,7 +133,7 @@ static struct elf_file_ops ef_obj_file_ops = {
};
static int
ef_obj_get_type(elf_file_t ef)
ef_obj_get_type(elf_file_t __unused ef)
{
return (EFT_KLD);
@ -180,7 +180,7 @@ ef_obj_symaddr(elf_file_t ef, Elf_Size symidx)
{
const Elf_Sym *sym;
if (symidx >= ef->ddbsymcnt)
if (symidx >= (size_t) ef->ddbsymcnt)
return (0);
sym = ef->ddbsymtab + symidx;