[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:
parent
55ecf87439
commit
e985b8b3be
@ -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':
|
||||
|
@ -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[] = {
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user