You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Shubham Singal <sh...@gmail.com> on 2006/09/18 12:12:10 UTC

Bug - apr_reslist_acquire_count

Hi,

There was a small bug when I was trying to compile the trunk code at
http://svn.apache.org/repos/asf/apr/apr-util/trunk/




The file http://svn.apache.org/repos/asf/apr/apr-util/trunk/misc/apr_reslist.c
defines
APU_DECLARE(apr_uint32_t) apr_reslist_acquire_count(apr_reslist_t *reslist)
{
    apr_uint32_t count;

    apr_thread_mutex_lock(reslist->listlock);
    count = reslist->ntotal - reslist->nidle;
    apr_thread_mutex_unlock(reslist->listlock);

    return count;
}


while
http://svn.apache.org/repos/asf/apr/apr-util/trunk/include/apr_reslist.h
requires
/**
 * Return the number of outstanding resources.
 * @param reslist The resource list.
 */
APU_DECLARE(apr_uint32_t) apr_reslist_acquired_count(apr_reslist_t *reslist);




May be a spelling mistake, acquired and acquire.

Regards,
Shubham Singal

Re: Bug - apr_reslist_acquire_count

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 9/18/06, Joe Orton <jo...@redhat.com> wrote:
> On Mon, Sep 18, 2006 at 03:42:10PM +0530, Shubham Singal wrote:
> > Hi,
> >
> > There was a small bug when I was trying to compile the trunk code at
> > http://svn.apache.org/repos/asf/apr/apr-util/trunk/
> ...
> > APU_DECLARE(apr_uint32_t) apr_reslist_acquired_count(apr_reslist_t
> > *reslist);
> >
> >
> >
> >
> > May be a spelling mistake, acquired and acquire.
>
> Ah, and this was why the httpd trunk build has been failing... thanks
> for catching this.  Since both CHANGES and the header used the with-"d"
> form I changed the .c file to match; hope this was as intended.

Oops, sorry about that.  My mistake.  Yeah, the d was intended.

-garrett

Re: Bug - apr_reslist_acquire_count

Posted by Joe Orton <jo...@redhat.com>.
On Mon, Sep 18, 2006 at 03:42:10PM +0530, Shubham Singal wrote:
> Hi,
> 
> There was a small bug when I was trying to compile the trunk code at
> http://svn.apache.org/repos/asf/apr/apr-util/trunk/
...
> APU_DECLARE(apr_uint32_t) apr_reslist_acquired_count(apr_reslist_t 
> *reslist);
> 
> 
> 
> 
> May be a spelling mistake, acquired and acquire.

Ah, and this was why the httpd trunk build has been failing... thanks 
for catching this.  Since both CHANGES and the header used the with-"d" 
form I changed the .c file to match; hope this was as intended.

joe