Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/console-tools/chvt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 6  Line 6 
6   *   *
7   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.   * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8   */   */
   
9  #include "libbb.h"  #include "libbb.h"
10    
11  int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int chvt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
12  int chvt_main(int argc, char **argv)  int chvt_main(int argc UNUSED_PARAM, char **argv)
13  {  {
14   int num;   int num = xatou_range(single_argv(argv), 1, 63);
   
  if (argc != 2) {  
  bb_show_usage();  
  }  
   
  num = xatou_range(argv[1], 1, 63);  
15   console_make_active(get_console_fd_or_die(), num);   console_make_active(get_console_fd_or_die(), num);
16   return EXIT_SUCCESS;   return EXIT_SUCCESS;
17  }  }

Legend:
Removed from v.983  
changed lines
  Added in v.984