hdt: Remove unused parameter in main_show_pxe
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 18:16:46 +0000 (11:16 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:22 +0000 (15:31 -0700)
Impact: Signature change.

The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli-pxe.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h

index af9c203..e7545cf 100644 (file)
@@ -36,7 +36,7 @@
 #include "hdt-cli.h"
 #include "hdt-common.h"
 
-void main_show_pxe(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
+void main_show_pxe(struct s_hardware *hardware)
 {
   char buffer[81];
   memset(buffer, 0, sizeof(81));
@@ -85,7 +85,7 @@ static void show_pxe_help()
 void pxe_show(char *item, struct s_hardware *hardware)
 {
   if (!strncmp(item, CLI_SHOW_LIST, sizeof(CLI_SHOW_LIST) - 1)) {
-    main_show_pxe(hardware, NULL);
+    main_show_pxe(hardware);
     return;
   }
   show_pxe_help();
index 5c05d00..d2a8e10 100644 (file)
@@ -280,7 +280,7 @@ void main_show_summary(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
   main_show_pci(hardware);
 
   if (hardware->is_pxe_valid)
-    main_show_pxe(hardware, cli_mode);
+    main_show_pxe(hardware);
 
   main_show_kernel(hardware);
 }
@@ -319,7 +319,7 @@ void main_show(char *item, struct s_hardware *hardware,
     return;
   }
   if (!strncmp(item, CLI_PXE, sizeof(CLI_PXE))) {
-    main_show_pxe(hardware, cli_mode);
+    main_show_pxe(hardware);
     return;
   }
   if (!strncmp(item, CLI_SYSLINUX, sizeof(CLI_SYSLINUX))) {
index b5784af..707e8a4 100644 (file)
@@ -112,7 +112,7 @@ void handle_cpu_commands(char *cli_line, struct s_cli_mode *cli_mode,
 void cpu_show(char *item, struct s_hardware *hardware);
 
 // PXE STUFF
-void main_show_pxe(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
+void main_show_pxe(struct s_hardware *hardware);
 void handle_pxe_commands(char *cli_line, struct s_hardware *hardware);
 
 // KERNEL STUFF