diff options
author | Sami Kerola | 2012-07-25 21:15:28 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-26 13:35:59 +0200 |
commit | 0c7fd6f8f9021a6935692f2df8e563d0256b0a98 (patch) | |
tree | 275456d431508c12a55bfc82763857e74a9c4a3c /sys-utils/eject.c | |
parent | whereis: fix shadow declaration (diff) | |
download | kernel-qcow2-util-linux-0c7fd6f8f9021a6935692f2df8e563d0256b0a98.tar.gz kernel-qcow2-util-linux-0c7fd6f8f9021a6935692f2df8e563d0256b0a98.tar.xz kernel-qcow2-util-linux-0c7fd6f8f9021a6935692f2df8e563d0256b0a98.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/eject.c')
-rw-r--r-- | sys-utils/eject.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c index c8bb6a8cc..08af08e0c 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++) |