Magellan Linux

Diff of /tags/mkinitrd-6_4_0/busybox/console-tools/dumpkmap.c

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

revision 984 by niro, Sun May 30 11:32:42 2010 UTC revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC
# Line 24  struct kbentry { Line 24  struct kbentry {
24  #define MAX_NR_KEYMAPS 256  #define MAX_NR_KEYMAPS 256
25    
26  int dumpkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int dumpkmap_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
27  int dumpkmap_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)  int dumpkmap_main(int argc UNUSED_PARAM, char **argv)
28  {  {
29   struct kbentry ke;   struct kbentry ke;
30   int i, j, fd;   int i, j, fd;
31   RESERVE_CONFIG_BUFFER(flags, MAX_NR_KEYMAPS);   RESERVE_CONFIG_BUFFER(flags, MAX_NR_KEYMAPS);
32    
33     /* When user accidentally runs "dumpkmap FILE"
34     * instead of "dumpkmap >FILE", we'd dump binary stuff to tty.
35     * Let's prevent it: */
36     if (argv[1])
37     bb_show_usage();
38  /* bb_warn_ignoring_args(argv[1]);*/  /* bb_warn_ignoring_args(argv[1]);*/
39    
40   fd = get_console_fd_or_die();   fd = get_console_fd_or_die();

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