Diff for /src/usr.sbin/vidcontrol/vidcontrol.c between versions 1.2 and 1.3

version 1.2, 2003/06/17 04:30:03 version 1.3, 2004/03/30 02:30:59
Line 26 Line 26
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *   *
  * $FreeBSD: src/usr.sbin/vidcontrol/vidcontrol.c,v 1.32.2.7 2002/09/15 22:31:50 dd Exp $   * $FreeBSD: src/usr.sbin/vidcontrol/vidcontrol.c,v 1.32.2.7 2002/09/15 22:31:50 dd Exp $
 * $DragonFly: src/usr.sbin/vidcontrol/vidcontrol.c,v 1.1 2003/06/16 07:39:20 dillon Exp $ * $DragonFly$
  */   */
   
   #include <machine/console.h>
   #include <sys/consio.h>
   #include <sys/errno.h>
   #include <sys/types.h>
   #include <sys/stat.h>
   
 #include <ctype.h>  #include <ctype.h>
 #include <err.h>  #include <err.h>
 #include <limits.h>  #include <limits.h>
Line 36 Line 42
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
#include <machine/console.h>
#include <sys/consio.h> 
#include <sys/errno.h> 
#include <sys/types.h> 
#include <sys/stat.h> 
 #include "path.h"  #include "path.h"
 #include "decode.h"  #include "decode.h"
   
Line 68  struct  vid_info info; Line 70  struct  vid_info info;
   
   
 static void  static void
usage()usage(void)
 {  {
         fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",          fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
 "usage: vidcontrol [-CdLPpx] [-b color] [-c appearance] [-f [size] file]",  "usage: vidcontrol [-CdLPpx] [-b color] [-c appearance] [-f [size] file]",
Line 144  load_scrnmap(char *filename) Line 146  load_scrnmap(char *filename)
 }  }
   
 void  void
load_default_scrnmap()load_default_scrnmap(void)
 {  {
         scrmap_t scrnmap;          scrmap_t scrnmap;
         int i;          int i;
Line 156  load_default_scrnmap() Line 158  load_default_scrnmap()
 }  }
   
 void  void
print_scrnmap()print_scrnmap(void)
 {  {
         unsigned char map[256];          unsigned char map[256];
         int i;          int i;
Line 642  show_info(char *arg) Line 644  show_info(char *arg)
 }  }
   
 void  void
test_frame()test_frame(void)
 {  {
         int i;          int i;
   
Line 745  set_history(char *opt) Line 747  set_history(char *opt)
 }  }
   
 void  void
clear_history()clear_history(void)
 {  {
   
         if (ioctl(0, CONS_CLRHIST) == -1)          if (ioctl(0, CONS_CLRHIST) == -1)
                 warn("clear history buffer");                  warn("clear history buffer");
 }  }

Removed from v.1.2  
changed lines
  Added in v.1.3