mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(sfs_open): rename variable
...to fix the warning: sfs.c:281:10: warning: declaration of 'sfs_info' shadows a global declaration [-Wshadow] Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cd16697a3a
commit
58d601c54b
@ -278,17 +278,17 @@ static void *
|
|||||||
sfs_open (const vfs_path_t * vpath /*struct vfs_class *me, const char *path */ , int flags,
|
sfs_open (const vfs_path_t * vpath /*struct vfs_class *me, const char *path */ , int flags,
|
||||||
mode_t mode)
|
mode_t mode)
|
||||||
{
|
{
|
||||||
int *sfs_info;
|
int *info;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
fd = open (sfs_redirect (vpath), NO_LINEAR (flags), mode);
|
fd = open (sfs_redirect (vpath), NO_LINEAR (flags), mode);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
sfs_info = g_new (int, 1);
|
info = g_new (int, 1);
|
||||||
*sfs_info = fd;
|
*info = fd;
|
||||||
|
|
||||||
return sfs_info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user