1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-24 01:47:30 +02:00

ubb-vga2.c (main): fixed check for unknown resolution and call it "mode"

This commit is contained in:
Werner Almesberger 2011-04-29 13:33:11 -03:00
parent a63579e119
commit f608e561a2

View File

@ -411,9 +411,8 @@ int main(int argc, char *const *argv)
for (mode = mode_db; mode->name; mode++) for (mode = mode_db; mode->name; mode++)
if (!strcmp(mode->name, optarg)) if (!strcmp(mode->name, optarg))
break; break;
if (!mode) { if (!mode->name) {
fprintf(stderr, "no resolution \"%s\"\n", fprintf(stderr, "no mode \"%s\"\n", optarg);
optarg);
exit(1); exit(1);
} }
break; break;