1
0
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:
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++)
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;