src/tools/split.c
| r5255 | r5256 | |
| 15 | 15 | #include <ctype.h> |
| 16 | 16 | #include "astring.h" |
| 17 | 17 | #include "corefile.h" |
| 18 | #include "corestr.h" |
| 18 | 19 | #include "sha1.h" |
| 19 | 20 | |
| 20 | 21 | #define DEFAULT_SPLIT_SIZE 100 |
| r5255 | r5256 | |
| 396 | 397 | goto usage; |
| 397 | 398 | |
| 398 | 399 | /* split command */ |
| 399 | | if (stricmp(argv[1], "-split") == 0) |
| 400 | if (core_stricmp(argv[1], "-split") == 0) |
| 400 | 401 | { |
| 401 | 402 | if (argc != 4 && argc != 5) |
| 402 | 403 | goto usage; |
| r5255 | r5256 | |
| 404 | 405 | } |
| 405 | 406 | |
| 406 | 407 | /* join command */ |
| 407 | | else if (stricmp(argv[1], "-join") == 0) |
| 408 | else if (core_stricmp(argv[1], "-join") == 0) |
| 408 | 409 | { |
| 409 | 410 | if (argc != 3 && argc != 4) |
| 410 | 411 | goto usage; |
| r5255 | r5256 | |
| 412 | 413 | } |
| 413 | 414 | |
| 414 | 415 | /* verify command */ |
| 415 | | else if (stricmp(argv[1], "-verify") == 0) |
| 416 | else if (core_stricmp(argv[1], "-verify") == 0) |
| 416 | 417 | { |
| 417 | 418 | if (argc != 3) |
| 418 | 419 | goto usage; |