summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-25 14:26:17 +0100
committerVolker Lendecke <vl@samba.org>2008-12-31 19:33:25 +0100
commit8ae4155f82269cbb7944faf5a0e2c968481fc03e (patch)
tree2220f6e7caf30bb9ca958c6fc50f6fd22e821c15 /source3/libsmb
parent1ce9525be28c3758fa41981573b50fa841e93804 (diff)
downloadsamba-8ae4155f82269cbb7944faf5a0e2c968481fc03e.tar.gz
samba-8ae4155f82269cbb7944faf5a0e2c968481fc03e.tar.bz2
samba-8ae4155f82269cbb7944faf5a0e2c968481fc03e.zip
Make a CONST_DISCARD unnecessary by applying some const
Derrell, please check!
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmb_xattr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c
index 4983018911..d71a318a1f 100644
--- a/source3/libsmb/libsmb_xattr.c
+++ b/source3/libsmb/libsmb_xattr.c
@@ -424,7 +424,7 @@ sec_desc_parse(TALLOC_CTX *ctx,
struct cli_state *ipc_cli,
POLICY_HND *pol,
bool numeric,
- char *str)
+ const char *str)
{
const char *p = str;
char *tok;
@@ -1531,8 +1531,7 @@ cacl_set(TALLOC_CTX *ctx,
the_acl = p + 1;
}
- sd = sec_desc_parse(ctx, ipc_cli, pol, numeric,
- CONST_DISCARD(char *, the_acl));
+ sd = sec_desc_parse(ctx, ipc_cli, pol, numeric, the_acl);
if (!sd) {
errno = EINVAL;