diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index cb49a96c71a..038281e599c 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 ea2f022de1d..902c2cadb20 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,