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