summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-21 23:23:58 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-21 23:35:58 +0200
commit6af5e7cde198ac21ed8030fd3744ab0ae7f15fd3 (patch)
tree78f782e137bfbf9297b68e89bce1c5eb02745d21
parentbd3e70c1bea906e942755cedfbcb467356b2a483 (diff)
downloadsamba-6af5e7cde198ac21ed8030fd3744ab0ae7f15fd3.tar.gz
samba-6af5e7cde198ac21ed8030fd3744ab0ae7f15fd3.tar.bz2
samba-6af5e7cde198ac21ed8030fd3744ab0ae7f15fd3.zip
s4:torture/rap/rap.c - quiet discard const warning
-rw-r--r--source4/torture/rap/rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 4468545e37..fb5520d7b9 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -212,7 +212,7 @@ static NTSTATUS rap_pull_string(TALLOC_CTX *mem_ctx, struct ndr_pull *ndr,
return NT_STATUS_INVALID_PARAMETER;
*dest = talloc_zero_array(mem_ctx, char, len+1);
- pull_string((char *)*dest, p, len+1, len, STR_ASCII);
+ pull_string(discard_const_p(char, *dest), p, len+1, len, STR_ASCII);
return NT_STATUS_OK;
}