]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Make a CONST_DISCARD unnecessary by applying some const
authorVolker Lendecke <vl@samba.org>
Thu, 25 Dec 2008 13:26:17 +0000 (14:26 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 31 Dec 2008 18:33:25 +0000 (19:33 +0100)
Derrell, please check!

source3/libsmb/libsmb_xattr.c

index 49830189116a661596bd2ffb1151a64fd6de24fc..d71a318a1ff76014786e1bbe9619f1a5fb81173d 100644 (file)
@@ -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;