final cleanup
This commit is contained in:
parent
d73ed7fa1d
commit
420ec9bf61
@ -123,7 +123,6 @@ static void write_text(char** text, FILE* stream)
|
|||||||
const char* yellow_str = (flags.coloured) ? YELLOW_TEXT_STR : "";
|
const char* yellow_str = (flags.coloured) ? YELLOW_TEXT_STR : "";
|
||||||
const char* green_str = (flags.coloured) ? GREEN_TEXT_STR : "";
|
const char* green_str = (flags.coloured) ? GREEN_TEXT_STR : "";
|
||||||
|
|
||||||
|
|
||||||
fprintf(stream, " ");
|
fprintf(stream, " ");
|
||||||
|
|
||||||
for (i = 0; i < flags.cols; i++) {
|
for (i = 0; i < flags.cols; i++) {
|
||||||
|
@ -25,7 +25,6 @@ static struct argp_option options[] = {
|
|||||||
{0, 'o', "off", 0, "add <off> to the displayed file position.", 0},
|
{0, 'o', "off", 0, "add <off> to the displayed file position.", 0},
|
||||||
{0, 'e', 0, 0, "little-endian dump (incompatible with -ps,-i,-r).", 0},
|
{0, 'e', 0, 0, "little-endian dump (incompatible with -ps,-i,-r).", 0},
|
||||||
{0, 's', "seek", 0, "start at <[+][-] seek> bytes abs. infile offset.", 0},
|
{0, 's', "seek", 0, "start at <[+][-] seek> bytes abs. infile offset.", 0},
|
||||||
{0, 'r', 0, 0, "reverse operation: convert (or patch) hexdump into binary.", 0},
|
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -66,9 +65,6 @@ static error_t parse_opt(int key, char* arg, struct argp_state* state)
|
|||||||
else
|
else
|
||||||
flags->coloured = true;
|
flags->coloured = true;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
|
||||||
flags->reverse_op = true;
|
|
||||||
flags->coloured = false;
|
|
||||||
case 'l':
|
case 'l':
|
||||||
flags->len = atoi(arg);
|
flags->len = atoi(arg);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user