From 337fa13358290cb5e57ff5b097787c60fc159c29 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 3 Jul 2014 09:57:02 +0200 Subject: [PATCH] s3:smbd: make dptr_ReadDirName() static. Signed-off-by: Michael Adam --- source3/smbd/dir.c | 8 ++++---- source3/smbd/proto.h | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index cb49a96..038281e 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -754,10 +754,10 @@ static const char *dptr_normal_ReadDirName(struct dptr_struct *dptr, Return the next visible file name, skipping veto'd and invisible files. ****************************************************************************/ -char *dptr_ReadDirName(TALLOC_CTX *ctx, - struct dptr_struct *dptr, - long *poffset, - SMB_STRUCT_STAT *pst) +static char *dptr_ReadDirName(TALLOC_CTX *ctx, + struct dptr_struct *dptr, + long *poffset, + SMB_STRUCT_STAT *pst) { struct smb_filename smb_fname_base; char *name = NULL; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index ea2f022..902c2ca 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -206,10 +206,6 @@ bool dptr_has_wild(struct dptr_struct *dptr); int dptr_dnum(struct dptr_struct *dptr); bool dptr_get_priv(struct dptr_struct *dptr); void dptr_set_priv(struct dptr_struct *dptr); -char *dptr_ReadDirName(TALLOC_CTX *ctx, - struct dptr_struct *dptr, - long *poffset, - SMB_STRUCT_STAT *pst); bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst); void dptr_init_search_op(struct dptr_struct *dptr); bool dptr_fill(struct smbd_server_connection *sconn, -- 1.9.1