From owner-freebsd-ports Wed Aug 14 9:31:59 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD08A37B400 for ; Wed, 14 Aug 2002 09:31:56 -0700 (PDT) Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E0043E8A for ; Wed, 14 Aug 2002 09:31:55 -0700 (PDT) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 17f13p-0008AM-01; Wed, 14 Aug 2002 18:31:53 +0200 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.5/8.12.5) with ESMTP id g7EGGxFe043220 for ; Wed, 14 Aug 2002 18:16:59 +0200 (CEST) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.5/8.12.5/Submit) id g7EGGwIk043219 for freebsd-ports@freebsd.org; Wed, 14 Aug 2002 18:16:58 +0200 (CEST) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: A but in Zoo Date: Wed, 14 Aug 2002 16:16:56 +0000 (UTC) Message-ID: References: <20020814114442.GA77130@wjv.com> <20020814130031.GA58489@falcon.midgard.homeip.net> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Erik Trulsson wrote: > To be more precise the function zootrunc() which can be found at the > end of the file bsd.c contains a line > > seekpos = lseek(fd, 0L, SEEK_CUR); > > This should be changed to > > seekpos = lseek(fd, (off_t) 0L, SEEK_CUR); If the compiler has seen the prototype for lseek(), it will perform that cast automatically. If the prototype hasn't been included at that point, then the fix is to fetch it: #include . -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message