mirror of
https://git.sr.ht/~calebccff/pbsplash
synced 2026-01-12 12:38:41 -09:00
getopt: remove unneeded check for -d
Remove the extra check for a value after specifying -d, as getopt() is already taking care of it: pbsplash: option requires an argument: d
This commit is contained in:
parent
883ce77d1e
commit
99ce784c28
1 changed files with 0 additions and 4 deletions
|
|
@ -248,10 +248,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
break;
|
||||
case 'd':
|
||||
if (!optarg) {
|
||||
fprintf(stderr, "--dpi requires an argument\n");
|
||||
return usage();
|
||||
}
|
||||
dpi = strtol(optarg, &end, 10);
|
||||
if (end == optarg) {
|
||||
fprintf(stderr, "Invalid dpi: %s\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue