summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 03fcfd8482..4c8145cc83 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--;}