s3: smbd: Cleanup - make SearchDir() static.
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 19:27:38 +0000 (12:27 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
It's only used in dir.c

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c
source3/smbd/proto.h

index 946d86de3fde0574fcc78bab660171776cfa30c0..d20bfa142abe0a6bbf78cedd83751ac4fa3a413a 100644 (file)
@@ -89,6 +89,8 @@ static void DirCacheAdd(struct smb_Dir *dir_hnd, const char *name, long offset);
 
 static int smb_Dir_destructor(struct smb_Dir *dir_hnd);
 
+static bool SearchDir(struct smb_Dir *dir_hnd, const char *name, long *poffset);
+
 #define INVALID_DPTR_KEY (-3)
 
 /****************************************************************************
@@ -1709,7 +1711,7 @@ static void DirCacheAdd(struct smb_Dir *dir_hnd, const char *name, long offset)
  Don't check for veto or invisible files.
 ********************************************************************/
 
-bool SearchDir(struct smb_Dir *dir_hnd, const char *name, long *poffset)
+static bool SearchDir(struct smb_Dir *dir_hnd, const char *name, long *poffset)
 {
        int i;
        const char *entry = NULL;
index b9131ba5bd945ef5ab7cd0269306928ec8f37cfe..45d720c08080ebd1863b78a1effd4e75187720f9 100644 (file)
@@ -243,7 +243,6 @@ const char *ReadDirName(struct smb_Dir *dir_hnd, long *poffset,
 void RewindDir(struct smb_Dir *dir_hnd, long *poffset);
 void SeekDir(struct smb_Dir *dirp, long offset);
 long TellDir(struct smb_Dir *dirp);
-bool SearchDir(struct smb_Dir *dirp, const char *name, long *poffset);
 NTSTATUS can_delete_directory(struct connection_struct *conn,
                                const char *dirname);
 bool have_file_open_below(connection_struct *conn,