vidcontrol patch
This is a multi-part message in MIME format.
--------------080903060103030809040202
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
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
--------------080903060103030809040202
Content-Type: text/plain;
name="vidcontrol.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="vidcontrol.patch"
*** /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");
--------------080903060103030809040202--
討論串 (同標題文章)