(vfs_s_subclass::dir_load): constify argument.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-05-07 11:45:06 +03:00
parent db8bc2fbff
commit ebb328353e
4 changed files with 7 additions and 7 deletions

View File

@ -139,7 +139,7 @@ struct vfs_s_subclass
struct vfs_s_entry *(*find_entry) (struct vfs_class * me,
struct vfs_s_inode * root,
const char *path, int follow, int flags);
int (*dir_load) (struct vfs_class * me, struct vfs_s_inode * ino, char *path);
int (*dir_load) (struct vfs_class * me, struct vfs_s_inode * ino, const char *path);
gboolean (*dir_uptodate) (struct vfs_class * me, struct vfs_s_inode * ino);
int (*file_store) (struct vfs_class * me, vfs_file_handler_t * fh, char *path, char *localname);

View File

@ -8,7 +8,7 @@
Written by:
Pavel Machek, 1998
Michal Svec, 2000
Andrew Borodin <aborodin@vmail.ru>, 2010-2019
Andrew Borodin <aborodin@vmail.ru>, 2010-2022
Slava Zanko <slavazanko@gmail.com>, 2010, 2013
Ilia Maslakov <il.smind@gmail.com>, 2010
@ -747,7 +747,7 @@ fish_archive_same (const vfs_path_element_t * vpath_element, struct vfs_s_super
/* --------------------------------------------------------------------------------------------- */
static int
fish_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
fish_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path)
{
struct vfs_s_super *super = dir->super;
char buffer[BUF_8K] = "\0";

View File

@ -12,7 +12,7 @@
Pavel Machek, 1998
Yury V. Zaytsev, 2010
Slava Zanko <slavazanko@gmail.com>, 2010, 2013
Andrew Borodin <aborodin@vmail.ru>, 2010
Andrew Borodin <aborodin@vmail.ru>, 2010-2022
This file is part of the Midnight Commander.
@ -1767,7 +1767,7 @@ resolve_symlink (struct vfs_class *me, struct vfs_s_super *super, struct vfs_s_i
/* --------------------------------------------------------------------------------------------- */
static int
ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path)
{
struct vfs_s_super *super = dir->super;
ftp_super_t *ftp_super = FTP_SUPER (super);

View File

@ -7,7 +7,7 @@
Written by:
Ilia Maslakov <il.smind@gmail.com>, 2011
Slava Zanko <slavazanko@gmail.com>, 2011-2013
Andrew Borodin <aborodin@vmail.ru>, 2021
Andrew Borodin <aborodin@vmail.ru>, 2021-2022
This file is part of the Midnight Commander.
@ -800,7 +800,7 @@ sftpfs_free_archive (struct vfs_class *me, struct vfs_s_super *super)
*/
static int
sftpfs_cb_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path)
sftpfs_cb_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path)
{
(void) me;
(void) dir;