cvs commit: src/usr.sbin/vidcontrol vidcontrol.1 vidcontrol.c

Sascha Wildner saw at online.de
Sun Apr 25 23:53:09 PDT 2004


David Rhodus wrote:

Yes, I would have expected to see the usage() before just
relaying an error.
Of course:

*** vidcontrol.c.orig	Mon Apr 26 08:51:34 2004
--- vidcontrol.c	Mon Apr 26 08:51:46 2004
***************
*** 1122,1134 ****
      char *font, *type;
      int opt;
      init();

      info.size = sizeof(info);

-     if (argc == 1)
-         usage();
-
      if (ioctl(0, CONS_GETINFO, &info) == -1)
          err(1, "must be on a virtual console");
--- 1122,1134 ----
      char *font, *type;
      int opt;
+     if (argc == 1)
+         usage();
+
      init();
      info.size = sizeof(info);

      if (ioctl(0, CONS_GETINFO, &info) == -1)
          err(1, "must be on a virtual console");
--
http://yoyodyne.ath.cx




More information about the Commits mailing list