]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
eject: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Wed, 25 Jul 2012 19:15:28 +0000 (21:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 11:35:59 +0000 (13:35 +0200)
sys-utils/eject.c:529:11: warning: declaration of 'str' shadows a previous local [-Wshadow]
sys-utils/eject.c:506:9: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/eject.c

index c8bb6a8ccc65e6f1490febe3a782c216092b2f33..08af08e0c5d7fd66b5c6b17e21f7add7e27e2883 100644 (file)
@@ -526,7 +526,6 @@ static int read_speed(const char *devname)
                } else {
                        if (strncmp(line, "drive speed:", 12) == 0) {
                                int i;
-                               char *str;
 
                                str = strtok(&line[12], "\t ");
                                for (i = 1; i < drive_number; i++)