diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-10-10 09:53:05 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-10-10 09:53:05 +0000 |
commit | cfdf9bf3be42b455a77d72cc58bcdfca76b7a889 (patch) | |
tree | d0662b277485d3ac7bdfdf2675c5c58659570e3b /xdelta3/xdelta3-main.h | |
parent | 1ff9f951b68e78d7358f8f64042d3493c22a0743 (diff) |
Recognize -S none.
Diffstat (limited to 'xdelta3/xdelta3-main.h')
-rw-r--r-- | xdelta3/xdelta3-main.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index 556c7bd..c02be63 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -2494,6 +2494,10 @@ main_input (xd3_cmd cmd, | |||
2494 | { | 2494 | { |
2495 | stream_flags |= XD3_SEC_DJW; | 2495 | stream_flags |= XD3_SEC_DJW; |
2496 | } | 2496 | } |
2497 | else if (strcmp (option_secondary, "none") == 0 && SECONDARY_DJW) | ||
2498 | { | ||
2499 | /* No secondary */ | ||
2500 | } | ||
2497 | else | 2501 | else |
2498 | { | 2502 | { |
2499 | XPR(NT "unrecognized secondary compressor type: %s\n", option_secondary); | 2503 | XPR(NT "unrecognized secondary compressor type: %s\n", option_secondary); |
@@ -3227,8 +3231,17 @@ main (int argc, char **argv) | |||
3227 | case 'T': option_use_altcodetable = 1; break; | 3231 | case 'T': option_use_altcodetable = 1; break; |
3228 | case 'C': option_smatch_config = my_optarg; break; | 3232 | case 'C': option_smatch_config = my_optarg; break; |
3229 | case 'J': option_no_output = 1; break; | 3233 | case 'J': option_no_output = 1; break; |
3230 | case 'S': if (my_optarg == NULL) { option_use_secondary = 0; } | 3234 | case 'S': if (my_optarg == NULL) |
3231 | else { option_use_secondary = 1; option_secondary = my_optarg; } break; | 3235 | { |
3236 | option_use_secondary = 1; | ||
3237 | option_secondary = "none"; | ||
3238 | } | ||
3239 | else | ||
3240 | { | ||
3241 | option_use_secondary = 1; | ||
3242 | option_secondary = my_optarg; | ||
3243 | } | ||
3244 | break; | ||
3232 | case 'A': if (my_optarg == NULL) { option_use_appheader = 0; } | 3245 | case 'A': if (my_optarg == NULL) { option_use_appheader = 0; } |
3233 | else { option_appheader = (uint8_t*) my_optarg; } break; | 3246 | else { option_appheader = (uint8_t*) my_optarg; } break; |
3234 | case 'B': | 3247 | case 'B': |