btrfs-progs: Fix getopt on arm platforms
authorLluis Batlle i Rossell <viric@viric.name>
Fri, 30 Nov 2012 10:08:39 +0000 (11:08 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 17 Jan 2013 17:27:56 +0000 (18:27 +0100)
commitbb0eabc383e9a3fde7cdb02591ca88243f3e31fb
tree8871d22f890f4c18ec1ee033986a3d56d2df303b
parent8c5b2ae588446e23dccf76120418b6b3892002f4
btrfs-progs: Fix getopt on arm platforms

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: Lluis Batlle i Rossell <viric@viric.name>
cmds-scrub.c
cmds-send.c