diff options
author | David Sterba <dsterba@suse.cz> | 2013-07-09 18:38:29 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:34 +0200 |
commit | 309e50c7634f0603dab866ad699e7981e9fca004 (patch) | |
tree | caff8de092c97c6318a4ea3b077f4fd3f73a8444 /cmds-device.c | |
parent | 89fde183ebbc87a930592b0f6f1e3301224f6682 (diff) |
btrfs-progs: Fix getopt on arm/ppc platforms
(same as commit bb0eabc383e9a3fde7cdb02591ca88243f3e31fb)
There, 'char' is unsigned, so once assigned '-1' from getopt, it gets
the value 255. Then, it compared to '-1' gives false.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-device.c')
-rw-r--r-- | cmds-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-device.c b/cmds-device.c index 41e79d37..9e7328b2 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -294,7 +294,7 @@ static int cmd_dev_stats(int argc, char **argv) int ret; int fdmnt; int i; - char c; + int c; int err = 0; __u64 flags = 0; |