mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +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,
|
||||
mode_t mode)
|
||||
{
|
||||
int *sfs_info;
|
||||
int *info;
|
||||
int fd;
|
||||
|
||||
fd = open (sfs_redirect (vpath), NO_LINEAR (flags), mode);
|
||||
if (fd == -1)
|
||||
return NULL;
|
||||
|
||||
sfs_info = g_new (int, 1);
|
||||
*sfs_info = fd;
|
||||
info = g_new (int, 1);
|
||||
*info = fd;
|
||||
|
||||
return sfs_info;
|
||||
return info;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user