From 8b4499942eff7bc6ea1b64cdc6ab6958b8f5d1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Sat, 17 Oct 2009 22:34:00 +0200 Subject: s4:torture/ldap/ldap_sort - Add some casts to suppress warnings --- source4/torture/ldap/ldap_sort.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4/torture/ldap') 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--;} -- cgit v1.2.1