/[grub]/grub2/commands/i386/pc/halt.c
ViewVC logotype

Diff of /grub2/commands/i386/pc/halt.c

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

revision 1.2 by okuji, Sun Jul 17 20:26:07 2005 UTC revision 1.3 by marco_g, Sun Nov 13 15:47:08 2005 UTC
# Line 44  grub_cmd_halt (struct grub_arg_list *sta Line 44  grub_cmd_halt (struct grub_arg_list *sta
44    
45    
46    
47  #ifdef GRUB_UTIL  GRUB_MOD_INIT(halt)
 void  
 grub_halt_init (void)  
 {  
   grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,  
                          "halt [OPTIONS...]",  
                          "Halt the system, if possible using APM", options);  
 }  
   
 void  
 grub_halt_fini (void)  
 {  
   grub_unregister_command ("halt");  
 }  
 #else /* ! GRUB_UTIL */  
 GRUB_MOD_INIT  
48  {  {
49    (void)mod;                    /* To stop warning. */    (void)mod;                    /* To stop warning. */
50    grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,    grub_register_command ("halt", grub_cmd_halt, GRUB_COMMAND_FLAG_BOTH,
# Line 67  GRUB_MOD_INIT Line 52  GRUB_MOD_INIT
52                           "Halt the system, if possible using APM", options);                           "Halt the system, if possible using APM", options);
53  }  }
54    
55  GRUB_MOD_FINI  GRUB_MOD_FINI(halt)
56  {  {
57    grub_unregister_command ("halt");    grub_unregister_command ("halt");
58  }  }
 #endif /* ! GRUB_UTIL */  

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26