apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: cvs commit: apr/network_io/unix sendrecv.c
Date Wed, 25 Jul 2001 15:38:02 GMT

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

Mime
View raw message