composite rpc call

Rafal Szczesniak mimir at samba.org
Tue Feb 22 15:31:26 GMT 2005


On Tue, Feb 22, 2005 at 12:31:18PM +0100, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Rafal Szczesniak schrieb:
> |
> |>>(3)
> |>>Lines like this:
> |>>  memcpy((void*)r.in.user_handle, (void*)rep->out.user_handle, 
> sizeof(struct policy_handle));
> |>>should be replaced with this:
> |>>  r.in.user_handle = rep->out.user_handle;
> |
> |
> | One more question: Is there a function I could use to copy a policy
> | handle structure ? In case I don't want to get the pointer, I need to
> | copy it and I couldn't find such a function. Needs to be coded ? :)
> 
> why do you need a function to copy a fixed size struct?
> 
> struct policy_handle h1,h2,*p1 = h1, *p2 = h2;

IIRC, there was some problem with policy handle being in fact a
structure (byte order or something). I might be mistaken there,
so if I am then indeed there's no problem.


cheers,
-- 
Rafal Szczesniak
Samba Team member  http://www.samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20050222/2eb8d7f8/attachment.bin


More information about the samba-technical mailing list