mirror of
https://git.sr.ht/~calebccff/pbsplash
synced 2026-01-12 20:48:40 -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;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
if (!optarg) {
|
|
||||||
fprintf(stderr, "--dpi requires an argument\n");
|
|
||||||
return usage();
|
|
||||||
}
|
|
||||||
dpi = strtol(optarg, &end, 10);
|
dpi = strtol(optarg, &end, 10);
|
||||||
if (end == optarg) {
|
if (end == optarg) {
|
||||||
fprintf(stderr, "Invalid dpi: %s\n",
|
fprintf(stderr, "Invalid dpi: %s\n",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue