Date: Tue, 6 Jan 2009 14:21:17 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186826 - head/usr.sbin/kldxref Message-ID: <200901061421.n06ELH2t033483@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Tue Jan 6 14:21:17 2009 New Revision: 186826 URL: http://svn.freebsd.org/changeset/base/186826 Log: fix a couple of innocuous compiler warnings MFC after: 3 days Modified: head/usr.sbin/kldxref/ef_i386.c head/usr.sbin/kldxref/ef_obj.c Modified: head/usr.sbin/kldxref/ef_i386.c ============================================================================== --- head/usr.sbin/kldxref/ef_i386.c Tue Jan 6 14:15:38 2009 (r186825) +++ head/usr.sbin/kldxref/ef_i386.c Tue Jan 6 14:21:17 2009 (r186826) @@ -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: Modified: head/usr.sbin/kldxref/ef_obj.c ============================================================================== --- head/usr.sbin/kldxref/ef_obj.c Tue Jan 6 14:15:38 2009 (r186825) +++ head/usr.sbin/kldxref/ef_obj.c Tue Jan 6 14:21:17 2009 (r186826) @@ -133,7 +133,7 @@ static struct elf_file_ops ef_obj_file_o }; 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 s { const Elf_Sym *sym; - if (symidx >= ef->ddbsymcnt) + if (symidx >= (size_t) ef->ddbsymcnt) return (0); sym = ef->ddbsymtab + symidx;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901061421.n06ELH2t033483>