s3:libads: avoid some compiler warnings in ldap.c
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (20:16 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:44 +0000 (07:25 +0100)
commitf53c7c308278187b31ed6fac60e7c7c417c8c77a
tree6ef5697c40bb12bdfceeac7443a77637db3a2cb3
parent559016a43986ec303fb5f86a54d61ecd160968ae
s3:libads: avoid some compiler warnings in ldap.c

We use helper variables and explicit casts using
discard_const_p() to avoid bogus const warnings.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libads/ldap.c