From 6a6af31148cb6003357ec78a7d9befc9e9313a74 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 31 May 2011 00:35:11 +0200 Subject: s3-libsmb: fix build warning of cli_qfilename(). Guenther --- source3/libsmb/clirap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index a05903e2bc..3e5f08dd3c 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -1079,7 +1079,7 @@ NTSTATUS cli_qfilename(struct cli_state *cli, uint16_t fnum, char *name, return status; } - clistr_pull(rdata, name, rdata+4, namelen, IVAL(rdata, 0), + clistr_pull((const char *)rdata, name, rdata+4, namelen, IVAL(rdata, 0), STR_UNICODE); TALLOC_FREE(rdata); return NT_STATUS_OK; -- cgit