vidcontrol patch

看板DFBSD_submit作者時間21年前 (2004/04/27 10:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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--
文章代碼(AID): #10ZRyd00 (DFBSD_submit)
文章代碼(AID): #10ZRyd00 (DFBSD_submit)