]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Wed, 25 Jul 2012 19:15:23 +0000 (21:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 09:09:38 +0000 (11:09 +0200)
libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow]
libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
libmount/src/tab_update.c

index 56e87cf0eb6879fdf0e9b9fd022145f67c003d3f..caabd05c201f8ef6b010ef58cf5a04fccaecaa91 100644 (file)
@@ -200,7 +200,7 @@ int mnt_update_set_fs(struct libmnt_update *upd, unsigned long mountflags,
 
        } else if (fs) {
                if (upd->userspace_only && !(mountflags & MS_MOVE)) {
-                       int rc = utab_new_entry(upd, fs, mountflags);
+                       rc = utab_new_entry(upd, fs, mountflags);
                        if (rc)
                                return rc;
                } else {