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

vidcontrol patch


From: Sascha Wildner <saw@xxxxxxxxx>
Date: Mon, 26 Apr 2004 19:51:58 +0200

Hi,

could someone kindly commit the attached patch? It fixes a bug noted by David Rhodus (vidcontrol w/o arguments won't show the usage) and removes a redundancy...

Thank you,
Sascha

--
http://yoyodyne.ath.cx

*** /usr/src/usr.sbin/vidcontrol/vidcontrol.c	Mon Apr 26 19:44:24 2004
--- /usr/s/src/usr.sbin/vidcontrol/vidcontrol.c	Mon Apr 26 18:36:24 2004
***************
*** 655,664 ****
                  revert();
                  errc(1, errno, "activating raster display");
              }
  
!             video_mode_changed = 1;
!         } else
!             video_mode_changed = 1;
          
          (*index)++;
      }
--- 655,663 ----
                  revert();
                  errc(1, errno, "activating raster display");
              }
+         }
  
!         video_mode_changed = 1;
          
          (*index)++;
      }
***************
*** 1132,1144 ****
      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");
  
--- 1131,1143 ----
      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");
  


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