From: Sami Kerola Date: Wed, 25 Jul 2012 19:15:28 +0000 (+0200) Subject: eject: fix shadow declaration X-Git-Tag: v2.22-rc1~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c7fd6f8f9021a6935692f2df8e563d0256b0a98;p=thirdparty%2Futil-linux.git eject: fix shadow declaration 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 --- diff --git a/sys-utils/eject.c b/sys-utils/eject.c index c8bb6a8ccc..08af08e0c5 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -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++)