]> git.ipfire.org Git - thirdparty/util-linux.git/commit
misc: fix shadow declarations
authorSami Kerola <kerolasa@iki.fi>
Mon, 17 Aug 2015 17:44:28 +0000 (18:44 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 24 Aug 2015 08:55:37 +0000 (10:55 +0200)
commit624e147ba29531b16edeaad21f67b7bc6e9e6b3e
tree124d36e8db6789af487c7dac5d8f7221ebade62a
parent3e16df1558afb2a97dee784bd1c02678b19140d5
misc: fix shadow declarations

sys-utils/zramctl.c: In function 'get_mm_stat':
sys-utils/zramctl.c:276:58: warning: declaration of 'inbytes' shadows a global declaration [-Wshadow]
 static char *get_mm_stat(struct zram *z, size_t idx, int inbytes)
sys-utils/zramctl.c:119:39: note: shadowed declaration is here
 static unsigned int raw, no_headings, inbytes;

libmount/src/tab.c: In function 'mnt_table_get_fs_root':
libmount/src/tab.c:1221:22: warning: declaration of 'fs' shadows a parameter [-Wshadow]
    struct libmnt_fs *fs = mnt_table_find_mountpoint(tb,
libmount/src/tab.c:1197:24: note: shadowed declaration is here
      struct libmnt_fs *fs,

disk-utils/fsck.minix.c: In function 'main':
disk-utils/fsck.minix.c:1364:17: warning: declaration of 'i' shadows a previous local [-Wshadow]
   unsigned long i, free;
disk-utils/fsck.minix.c:1250:6: note: shadowed declaration is here
  int i;

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/fsck.minix.c
libmount/src/tab.c
sys-utils/zramctl.c