From 58d601c54b62ff061c2088d03d5d5aeaceec3dcf Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 17 Jun 2019 08:17:13 +0300 Subject: [PATCH] (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 --- src/vfs/sfs/sfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vfs/sfs/sfs.c b/src/vfs/sfs/sfs.c index fb57ab6fe..4e01d2d7d 100644 --- a/src/vfs/sfs/sfs.c +++ b/src/vfs/sfs/sfs.c @@ -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; } /* --------------------------------------------------------------------------------------------- */