summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-17 22:34:00 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-12-01 16:48:14 +1100
commit8b4499942eff7bc6ea1b64cdc6ab6958b8f5d1a8 (patch)
treeb777d6327ae3fcbbe1b7b1a4089549c2dcc9e582 /source4/torture/ldap
parent7be99d373578f42ac47e67ef1b95a2409cecc184 (diff)
downloadsamba-8b4499942eff7bc6ea1b64cdc6ab6958b8f5d1a8.tar.gz
s4:torture/ldap/ldap_sort - Add some casts to suppress warnings
Diffstat (limited to 'source4/torture/ldap')
-rw-r--r--source4/torture/ldap/ldap_sort.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/ldap/ldap_sort.c b/source4/torture/ldap/ldap_sort.c
index 03fcfd8482d..4c8145cc835 100644
--- a/source4/torture/ldap/ldap_sort.c
+++ b/source4/torture/ldap/ldap_sort.c
@@ -46,13 +46,13 @@ bool torture_ldap_sort(struct torture_context *torture)
struct ldb_server_sort_control **control;
struct ldb_request *req;
struct ldb_result *ctx;
- struct ldb_val* prev = NULL;
+ struct ldb_val *prev = NULL;
const char *prev_txt = NULL;
int prev_len = 0;
- struct ldb_val* cur = NULL;
+ struct ldb_val *cur = NULL;
const char *cur_txt = NULL;
int cur_len = 0;
- struct ldb_dn* dn;
+ struct ldb_dn *dn;
/* TALLOC_CTX* ctx;*/
@@ -103,10 +103,10 @@ bool torture_ldap_sort(struct torture_context *torture)
if (prev != NULL)
{
/* Do only the ascii case right now ... */
- cur_txt=cur->data;
- cur_len=cur->length;
- prev_txt=prev->data;
- prev_len=prev->length;
+ cur_txt = (const char *) cur->data;
+ cur_len = cur->length;
+ prev_txt = (const char *) prev->data;
+ prev_len = prev->length;
/* Remove leading whitespace as the sort function do so ... */
while ( cur_txt[0] == cur_txt[1] ) { cur_txt++; cur_len--;}
while ( prev_txt[0] == prev_txt[1] ) { prev_txt++; prev_len--;}