summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:46:37 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commitf50dedb8fb2c654d3e5dccba24fdf79a96525061 (patch)
tree1f41dc592c4d907e3da0a43afd7656060d4254a0
parentb8dd1749e30615d26107b99baa264c6d334a8f9d (diff)
downloadsamba-f50dedb8fb2c654d3e5dccba24fdf79a96525061.tar.gz
samba-f50dedb8fb2c654d3e5dccba24fdf79a96525061.tar.bz2
samba-f50dedb8fb2c654d3e5dccba24fdf79a96525061.zip
smbd: Make copy_smb_filename static
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-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) {