[Freeipa-devel] [PATCH][SSSD] Implement GetUserAttributes in the InfoPipe

Simo Sorce ssorce at redhat.com
Mon Mar 2 14:08:07 UTC 2009


On Mon, 2009-03-02 at 08:56 -0500, Stephen Gallagher wrote:
> You can't use strdup, because btreemap takes a void *. This is
> necessary
> so it can hold arbitrary data (see its use in
> create_getattr_result_map).

If thekeys are void we can turn them into a char *, are we ever going to
use keys that are not strings?

> Also, I wasn't using talloc_reference, it's talloc_steal. Yes, I know
> that's not ideal either. I'm open to suggestions.

talloc_steal() is much worse in this case.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list