mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-12-26 08:34:35 +02:00
ubb-vga2.c (main): fixed check for unknown resolution and call it "mode"
This commit is contained in:
parent
a63579e119
commit
f608e561a2
@ -411,9 +411,8 @@ int main(int argc, char *const *argv)
|
||||
for (mode = mode_db; mode->name; mode++)
|
||||
if (!strcmp(mode->name, optarg))
|
||||
break;
|
||||
if (!mode) {
|
||||
fprintf(stderr, "no resolution \"%s\"\n",
|
||||
optarg);
|
||||
if (!mode->name) {
|
||||
fprintf(stderr, "no mode \"%s\"\n", optarg);
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user