|
|
@ -64,11 +64,9 @@ int do_unpack(int argc, char *argv[]) |
|
|
|
char data[512]; |
|
|
|
char data[512]; |
|
|
|
struct rots_hdr hdr; |
|
|
|
struct rots_hdr hdr; |
|
|
|
FILE *in, *out; |
|
|
|
FILE *in, *out; |
|
|
|
struct args args; |
|
|
|
struct args args = { 0 }; |
|
|
|
size_t nbytes, size; |
|
|
|
size_t nbytes, size; |
|
|
|
|
|
|
|
|
|
|
|
memset(&args, 0, sizeof args); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (parse_args(&args, argc, argv) < 0) { |
|
|
|
if (parse_args(&args, argc, argv) < 0) { |
|
|
|
show_unpack_usage(argv[0], argv[1]); |
|
|
|
show_unpack_usage(argv[0], argv[1]); |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|