mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
fix a couple of innocuous compiler warnings
MFC after: 3 days
This commit is contained in:
parent
d423f266c4
commit
14560a3610
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186826
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user