[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;
|
boost::optional<string> output;
|
||||||
flags f;
|
flags f;
|
||||||
|
|
||||||
char c;
|
int c;
|
||||||
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
|
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'h':
|
case 'h':
|
||||||
|
@ -216,7 +216,7 @@ thin_ll_restore_cmd::run(int argc, char **argv) {
|
|||||||
string output;
|
string output;
|
||||||
string input_metadata;
|
string input_metadata;
|
||||||
flags f;
|
flags f;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
const char shortopts[] = "hi:o:E:V";
|
const char shortopts[] = "hi:o:E:V";
|
||||||
const struct option longopts[] = {
|
const struct option longopts[] = {
|
||||||
|
@ -383,7 +383,7 @@ thin_scan_cmd::run(int argc, char **argv)
|
|||||||
boost::optional<string> output;
|
boost::optional<string> output;
|
||||||
flags f;
|
flags f;
|
||||||
|
|
||||||
char c;
|
int c;
|
||||||
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
|
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case 'h':
|
case 'h':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user