| 22 | } length_cb; |
| 23 | |
| 24 | static int mode34_callback(const struct option *opt, const char *arg, int unset) |
| 25 | { |
| 26 | if (unset) |
| 27 | *(int *)opt->value = 0; |
| 28 | else if (!strcmp(arg, "3")) |
| 29 | *(int *)opt->value = 3; |
| 30 | else if (!strcmp(arg, "4")) |
| 31 | *(int *)opt->value = 4; |
| 32 | else |
| 33 | return error("invalid value for '%s': '%s'", "--mode34", arg); |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | static int length_callback(const struct option *opt, const char *arg, int unset) |
| 38 | { |