summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/clisecdesc.c2
-rw-r--r--source3/libsmb/proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index aded264077..70596d6a67 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -75,7 +75,7 @@ NTSTATUS cli_query_secdesc(struct cli_state *cli, uint16_t fnum,
set the security descriptor for a open file
****************************************************************************/
NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
- struct security_descriptor *sd)
+ const struct security_descriptor *sd)
{
uint8_t param[8];
uint32 sec_info = 0;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 298fcbcf9b..1d2da7f8fb 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -788,7 +788,7 @@ NTSTATUS cli_push(struct cli_state *cli, uint16_t fnum, uint16_t mode,
NTSTATUS cli_query_secdesc(struct cli_state *cli, uint16_t fnum,
TALLOC_CTX *mem_ctx, struct security_descriptor **sd);
NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
- struct security_descriptor *sd);
+ const struct security_descriptor *sd);
/* The following definitions come from libsmb/clistr.c */