From owner-svn-src-head@FreeBSD.ORG Tue Jan 6 14:21:18 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 310F7106566B; Tue, 6 Jan 2009 14:21:18 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1F4A48FC1D; Tue, 6 Jan 2009 14:21:18 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n06ELIqx033485; Tue, 6 Jan 2009 14:21:18 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n06ELH2t033483; Tue, 6 Jan 2009 14:21:17 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <200901061421.n06ELH2t033483@svn.freebsd.org> From: Luigi Rizzo Date: Tue, 6 Jan 2009 14:21:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186826 - head/usr.sbin/kldxref X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 14:21:18 -0000 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;