libmsrpc feedback

Gerald (Jerry) Carter jerry at samba.org
Tue Aug 16 17:08:19 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Nicholls wrote:

> Do you have a problem with using a BOOL instead?
> 
> struct cac_LookupRidsRecord {
>     char *name;
>     uint32 rid;
>     BOOL found;
> };
> 
> then you could use if(array[i].found)

That should be ok.  I originally mentioned NTSTATUS since the
reply can be NT_STATUS_MAPPED, NT_STATUS_NONE_MAPPED, or
NT_STATUS_SOME_MAPPED.  But on a indivudal rid we really only
have binary state.  So a boolean is enough.



jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDAh2DIR7qMdg1EfYRAkGqAKDRHlEzZLHhiM9wVPdnf7pH11FIawCfcSof
mUNheNBUxzhb8WKLTIYim8A=
=b82p
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list