mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: smbd: Naming consistency. Change all uses of struct smb_Dir * variables to be dir_hnd.
Fixes RewindDir(). No logic changes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
ec072f1a97
commit
a5b876f3db
@ -1845,11 +1845,11 @@ const char *ReadDirName(struct smb_Dir *dir_hnd, long *poffset,
|
||||
Rewind to the start.
|
||||
********************************************************************/
|
||||
|
||||
void RewindDir(struct smb_Dir *dirp, long *poffset)
|
||||
void RewindDir(struct smb_Dir *dir_hnd, long *poffset)
|
||||
{
|
||||
SMB_VFS_REWINDDIR(dirp->conn, dirp->dir);
|
||||
dirp->file_number = 0;
|
||||
dirp->offset = START_OF_DIRECTORY_OFFSET;
|
||||
SMB_VFS_REWINDDIR(dir_hnd->conn, dir_hnd->dir);
|
||||
dir_hnd->file_number = 0;
|
||||
dir_hnd->offset = START_OF_DIRECTORY_OFFSET;
|
||||
*poffset = START_OF_DIRECTORY_OFFSET;
|
||||
}
|
||||
|
||||
|
@ -232,7 +232,7 @@ struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
|
||||
uint32_t attr);
|
||||
const char *ReadDirName(struct smb_Dir *dir_hnd, long *poffset,
|
||||
SMB_STRUCT_STAT *sbuf, char **talloced);
|
||||
void RewindDir(struct smb_Dir *dirp, 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);
|
||||
|
Loading…
Reference in New Issue
Block a user