From: Sami Kerola Date: Wed, 25 Jul 2012 19:15:23 +0000 (+0200) Subject: libmount: fix shadow declaration X-Git-Tag: v2.22-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8228372b0ec9b5f349ad428ad8fe2d3cbc6e7f65;p=thirdparty%2Futil-linux.git libmount: fix shadow declaration 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 --- diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 56e87cf0eb..caabd05c20 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -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 {