summaryrefslogtreecommitdiff
path: root/source4/torture/rap/rap.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-26 22:09:44 +0200
committerGünther Deschner <gd@samba.org>2010-04-26 22:53:00 +0200
commitaae716d044081e5e1315de4abf22dbeb9d32a18e (patch)
tree751602af1b2086929bafa8cc9fdbaea29ad5a0e7 /source4/torture/rap/rap.c
parentdbfff90185daecfa452520276c8cabdce3b1c616 (diff)
downloadsamba-aae716d044081e5e1315de4abf22dbeb9d32a18e.tar.gz
samba-aae716d044081e5e1315de4abf22dbeb9d32a18e.tar.bz2
samba-aae716d044081e5e1315de4abf22dbeb9d32a18e.zip
s4: fix some build warnings.
Guenther
Diffstat (limited to 'source4/torture/rap/rap.c')
-rw-r--r--source4/torture/rap/rap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 158bf77e1b..57d27ed32f 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -161,7 +161,7 @@ static void rap_cli_expect_format(struct rap_call *call, const char *format)
}
static NTSTATUS rap_pull_string(TALLOC_CTX *mem_ctx, struct ndr_pull *ndr,
- uint16_t convert, char **dest)
+ uint16_t convert, const char **dest)
{
uint16_t string_offset;
uint16_t ignore;
@@ -183,7 +183,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(*dest, p, len+1, len, STR_ASCII);
+ pull_string((char *)*dest, p, len+1, len, STR_ASCII);
return NT_STATUS_OK;
}