always pass filename as const char
authorMatthew McGillis <matthew@mcgillis.org>
Mon, 3 May 2010 01:08:02 +0000 (18:08 -0700)
committerVolker Lendecke <vl@samba.org>
Mon, 3 May 2010 06:06:56 +0000 (08:06 +0200)
source3/utils/smbcacls.c

index e1e37ae46c317395f3c0926d17995ed7a37a4bae..ac68adc0217c25e8d69f4c50774b392b44fcb9c1 100644 (file)
@@ -661,7 +661,7 @@ static void sec_desc_print(struct cli_state *cli, FILE *f, SEC_DESC *sd)
 /***************************************************** 
 dump the acls for a file
 *******************************************************/
-static int cacl_dump(struct cli_state *cli, char *filename)
+static int cacl_dump(struct cli_state *cli, const char *filename)
 {
        int result = EXIT_FAILED;
        uint16_t fnum = (uint16_t)-1;
@@ -818,7 +818,7 @@ static void sort_acl(SEC_ACL *the_acl)
 set the ACLs on a file given an ascii description
 *******************************************************/
 
-static int cacl_set(struct cli_state *cli, char *filename, 
+static int cacl_set(struct cli_state *cli, const char *filename,
                    char *the_acl, enum acl_mode mode)
 {
        uint16_t fnum;