[thin_scan][thin_ll_*] fix the data type for getopt_long return value to int

For toolchains represent char as unsigned type
This commit is contained in:
Ming-Hung Tsai 2016-05-19 00:47:54 +08:00
parent 55ecf87439
commit e985b8b3be
3 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ thin_ll_dump_cmd::run(int argc, char **argv)
boost::optional<string> output;
flags f;
char c;
int c;
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
switch(c) {
case 'h':

View File

@ -216,7 +216,7 @@ thin_ll_restore_cmd::run(int argc, char **argv) {
string output;
string input_metadata;
flags f;
char c;
int c;
const char shortopts[] = "hi:o:E:V";
const struct option longopts[] = {

View File

@ -383,7 +383,7 @@ thin_scan_cmd::run(int argc, char **argv)
boost::optional<string> output;
flags f;
char c;
int c;
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
switch(c) {
case 'h':