On Fri, Jan 26, 2001 at 08:37:57AM -0600, Ben Collins-Sussman wrote:
> Kevin Pilch-Bisson <kevin@pilch-bisson.net> writes:
>  
> > Anyway try status = apr_put_os_file(&file, &STDOUT_FILENO, pool).  My
> > guess is that your segfault was because you casted an int to a pointer,
> > and then the filedes assignment dereferenced that pointer.
> 
> Uh, this won't compile.  You can't place an `&' in front of int, can you?
> 
>      diff.c:52: invalid lvalue in unary `&'
> 
> I can't find any reference to STDOUT_FILENO in apr, except in apr.hw,
> which is a win32-specific file.  What the heck is this thing?  :)
> 
> Well, I checked in `svn diff' now, so somebody feel free to make
> client/diff.c work correctly.  :)
> ____________________________________________________________
Well you can place an & in from for an int, but not in front of a
literal, which is what STD_FILENO is since it is #defined.  I'll take a
look at it, and let you know what I find.
-- 
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson
kevin@pilch-bisson.net
http://www.pilch-bisson.net
PGP Public Key At http://pgp.pilch-bisson.net
- application/pgp-signature attachment: stored
 
Received on Sat Oct 21 14:36:20 2006