summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h3
-rw-r--r--source3/lib/filename_util.c10
2 files changed, 7 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 2ebd14b59d..6bc151e888 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1608,9 +1608,6 @@ NTSTATUS create_synthetic_smb_fname_split(TALLOC_CTX *ctx,
const char *smb_fname_str_dbg(const struct smb_filename *smb_fname);
const char *fsp_str_dbg(const struct files_struct *fsp);
const char *fsp_fnum_dbg(const struct files_struct *fsp);
-NTSTATUS copy_smb_filename(TALLOC_CTX *ctx,
- const struct smb_filename *smb_fname_in,
- struct smb_filename **smb_fname_out);
struct smb_filename *cp_smb_filename(TALLOC_CTX *mem_ctx,
const struct smb_filename *in);
bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname);
diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c
index 90bb2b8627..99cc114c18 100644
--- a/source3/lib/filename_util.c
+++ b/source3/lib/filename_util.c
@@ -18,6 +18,10 @@
*/
#include "includes.h"
+static NTSTATUS copy_smb_filename(TALLOC_CTX *ctx,
+ const struct smb_filename *smb_fname_in,
+ struct smb_filename **smb_fname_out);
+
/**
* XXX: This is temporary and there should be no callers of this outside of
* this file once smb_filename is plumbed through all path based operations.
@@ -200,9 +204,9 @@ fail:
return NULL;
}
-NTSTATUS copy_smb_filename(TALLOC_CTX *ctx,
- const struct smb_filename *smb_fname_in,
- struct smb_filename **smb_fname_out)
+static NTSTATUS copy_smb_filename(TALLOC_CTX *ctx,
+ const struct smb_filename *smb_fname_in,
+ struct smb_filename **smb_fname_out)
{
*smb_fname_out = cp_smb_filename(ctx, smb_fname_in);
if (*smb_fname_out == NULL) {