[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: More type problems and return values in the C API



Mark Smith writes:

> The last paragraph of section 5 of the draft says "Note that this API
> is designed for use in environments where the 'int' type is at least
> 32 bits in size."  Therefore, I don't think it is too limiting to use
> int for the parameters you mention.

OK.

>> A few other points:
>> 
>> The draft doesn't seem to say what ldap_msgfree() returns on
>> success.  (OpenLDAP returns the type of the last freed message.)
> 
> Actually, this is already covered.  This text appears in section 12
> (third to last paragraph):

Duh.  Sorry about that.

>    ldap_msgfree() frees the result structure pointed to by res and
>    returns the type of the message it freed.  If res is NULL, nothing
>    is done and the value zero is returned.

However, it doesn't say which message's type is returned if it frees a
chain of messages (2nd paragraph in section 12).  Or have all messages
in a chain the same type?

-- 
Hallvard