summaryrefslogtreecommitdiffstats
path: root/libcli/ldap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-23 14:24:16 +0200
committerVolker Lendecke <vl@samba.org>2009-04-23 14:35:50 +0200
commit2146310fb75b743d383aeeae3ac121e37903f229 (patch)
tree5cdf7afcfc30dd78640bc8b5b311e0b5cbbc3d79 /libcli/ldap
parentb8cd1cff2dfad726cf6dab368dfcc31a29952889 (diff)
downloadsamba-2146310fb75b743d383aeeae3ac121e37903f229.tar.gz
samba-2146310fb75b743d383aeeae3ac121e37903f229.tar.xz
samba-2146310fb75b743d383aeeae3ac121e37903f229.zip
Fix a couple of warnings
Diffstat (limited to 'libcli/ldap')
-rw-r--r--libcli/ldap/ldap_message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c
index 9b00d0188d1..8b0f8a2ea15 100644
--- a/libcli/ldap/ldap_message.c
+++ b/libcli/ldap/ldap_message.c
@@ -1230,8 +1230,8 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
msg->type = LDAP_TAG_SearchRequest;
asn1_start_tag(data, tag);
asn1_read_OctetString_talloc(msg, data, &r->basedn);
- asn1_read_enumerated(data, (int *)&(r->scope));
- asn1_read_enumerated(data, (int *)&(r->deref));
+ asn1_read_enumerated(data, (int *)(void *)&(r->scope));
+ asn1_read_enumerated(data, (int *)(void *)&(r->deref));
asn1_read_Integer(data, &sizelimit);
r->sizelimit = sizelimit;
asn1_read_Integer(data, &timelimit);