(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:
Andrew Borodin 2019-06-17 08:17:13 +03:00
parent cd16697a3a
commit 58d601c54b

View File

@ -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;
}
/* --------------------------------------------------------------------------------------------- */