Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 51989 invoked by uid 500); 25 Jul 2001 15:37:11 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 51926 invoked from network); 25 Jul 2001 15:37:10 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Ryan Bloom Reply-To: rbb@covalent.net Organization: Covalent Technologies To: dev@apr.apache.org, jerenkrantz@apache.org, apr-cvs@apache.org Subject: Re: cvs commit: apr/network_io/unix sendrecv.c Date: Wed, 25 Jul 2001 08:38:02 -0700 X-Mailer: KMail [version 1.2] References: <20010725052732.6068.qmail@icarus.apache.org> In-Reply-To: <20010725052732.6068.qmail@icarus.apache.org> MIME-Version: 1.0 Message-Id: <0107250838020F.03564@koj.rkbloom.net> Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N We usually don't cast for cases like this. If a cast is required, then something is usually wrong. Ryan On Tuesday 24 July 2001 22:27, jerenkrantz@apache.org wrote: > jerenkrantz 01/07/24 22:27:32 > > Modified: network_io/unix sendrecv.c > Log: > Shush lame compiler warning. > > Revision Changes Path > 1.71 +2 -2 apr/network_io/unix/sendrecv.c > > Index: sendrecv.c > =================================================================== > RCS file: /home/cvs/apr/network_io/unix/sendrecv.c,v > retrieving revision 1.70 > retrieving revision 1.71 > diff -u -r1.70 -r1.71 > --- sendrecv.c 2001/07/24 16:53:40 1.70 > +++ sendrecv.c 2001/07/25 05:27:32 1.71 > @@ -781,7 +781,7 @@ > for (i = 0; i < hdtr->numheaders; i++, curvec++) { > sfv[curvec].sfv_fd = SFV_FD_SELF; > sfv[curvec].sfv_flag = 0; > - sfv[curvec].sfv_off = hdtr->headers[i].iov_base; > + sfv[curvec].sfv_off = (off_t)hdtr->headers[i].iov_base; > sfv[curvec].sfv_len = hdtr->headers[i].iov_len; > } > > @@ -802,7 +802,7 @@ > for (i = 0; i < hdtr->numtrailers; i++, curvec++) { > sfv[curvec].sfv_fd = SFV_FD_SELF; > sfv[curvec].sfv_flag = 0; > - sfv[curvec].sfv_off = hdtr->trailers[i].iov_base; > + sfv[curvec].sfv_off = (off_t)hdtr->trailers[i].iov_base; > sfv[curvec].sfv_len = hdtr->trailers[i].iov_len; > } -- _____________________________________________________________________________ Ryan Bloom rbb@apache.org Covalent Technologies rbb@covalent.net -----------------------------------------------------------------------------