vidcontrol patch

Sascha Wildner saw at online.de
Mon Apr 26 10:51:58 PDT 2004


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");
  




More information about the Submit mailing list