const on ldb_dn in ldb

Andrew Bartlett abartlet at samba.org
Wed Dec 13 07:44:22 GMT 2006


Many of the ldb functions take an ldb_dn *, but this is not const in the
prototype.  

For example:
struct ldb_dn *ldb_dn_copy(void *mem_ctx, struct ldb_dn *dn);
struct ldb_dn *ldb_dn_get_parent(void *mem_ctx, struct ldb_dn *dn);

Is there a reason for avoiding the const here?  I have functions with
return a const ldb_dn, and this now causes warnings.

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20061213/bddfebea/attachment.bin


More information about the samba-technical mailing list