On Thu, 15 Mar 2001, Doug MacEachern wrote:

> i just noticed that this function takes an apr_pool_t* argument, but none
> of the implementations (unix, win32 , os2) use it for anything.  any
> reason not to remove this unused arg?


Yes.  All APR functions must have acess to a pool.  Imagine a platform
that requires we allocate memory for gethostname before we call the system
call.  If we don't pass the pool, we can't allocate the memory.  We are
trying to be future proof, which may be stupid, but that was part of the
original design.

Ryan

_______________________________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------

Reply via email to