More pstring elimination.
authorJeremy Allison <jra@samba.org>
Wed, 5 Dec 2007 00:35:24 +0000 (16:35 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 5 Dec 2007 00:35:24 +0000 (16:35 -0800)
Jeremy.

source/utils/net_rpc.c

index e4b1872203b28fe51af8d35ea8d93981d5129f8e..b41142a087a1d4b2a700667510411b77e6c9a17a 100644 (file)
@@ -24,6 +24,7 @@
 #include "utils/net.h"
 
 static int net_mode_share;
 #include "utils/net.h"
 
 static int net_mode_share;
+static bool sync_files(struct copy_clistate *cp_clistate, const char *mask);
 
 /**
  * @file net_rpc.c
 
 /**
  * @file net_rpc.c
@@ -3588,7 +3589,7 @@ static void copy_fn(const char *mnt, file_info *f, const char *mask, void *state
  *
  * @return             Boolean result
  **/
  *
  * @return             Boolean result
  **/
-bool sync_files(struct copy_clistate *cp_clistate, pstring mask)
+static bool sync_files(struct copy_clistate *cp_clistate, const char *mask)
 {
        struct cli_state *targetcli;
        char *targetpath = NULL;
 {
        struct cli_state *targetcli;
        char *targetpath = NULL;
@@ -3680,7 +3681,7 @@ static NTSTATUS rpc_share_migrate_files_internals(const DOM_SID *domain_sid,
        struct copy_clistate cp_clistate;
        bool got_src_share = False;
        bool got_dst_share = False;
        struct copy_clistate cp_clistate;
        bool got_src_share = False;
        bool got_dst_share = False;
-       pstring mask = "\\*";
+       const char *mask = "\\*";
        char *dst = NULL;
 
        dst = SMB_STRDUP(opt_destination?opt_destination:"127.0.0.1");
        char *dst = NULL;
 
        dst = SMB_STRDUP(opt_destination?opt_destination:"127.0.0.1");