diff options
Diffstat (limited to 'cgpt/cmd_legacy.c')
-rw-r--r-- | cgpt/cmd_legacy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cgpt/cmd_legacy.c b/cgpt/cmd_legacy.c index e45b305c..911384d6 100644 --- a/cgpt/cmd_legacy.c +++ b/cgpt/cmd_legacy.c @@ -38,11 +38,7 @@ int cmd_legacy(int argc, char *argv[]) { { case 'D': params.drive_size = strtoull(optarg, &e, 0); - if (!*optarg || (e && *e)) - { - Error("invalid argument to -%c: \"%s\"\n", c, optarg); - errorcnt++; - } + errorcnt += check_int_parse(c, e); break; case 'e': if (params.mode) { |