DragonFly BSD
DragonFly commits List (threaded) for 2004-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sascha Wildner <saw@xxxxxxxxx>
Date: Mon, 26 Apr 2004 08:53:09 +0200

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]