Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2002 16:16:56 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   Re: A but in Zoo
Message-ID:  <ajdvpo$19r7$1@kemoauc.mips.inka.de>
References:  <bulk.34340.20020814013822@hub.freebsd.org> <20020814114442.GA77130@wjv.com> <20020814130031.GA58489@falcon.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Erik Trulsson <ertr1013@student.uu.se> 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 <unistd.h>.

-- 
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ajdvpo$19r7$1>