hdt: Make pci_show static
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 18:58:31 +0000 (11:58 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:23 +0000 (15:31 -0700)
Impact: None.

pci_show is only used in hdt-cli-pci.c. Let's make it static.

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

index 6b6f519..f5af6ce 100644 (file)
@@ -211,7 +211,7 @@ static void show_pci_help()
   more_printf(" %s <device_number>\n", CLI_PCI_DEVICE);
 }
 
-void pci_show(char *item, struct s_hardware *hardware)
+static void pci_show(char *item, struct s_hardware *hardware)
 {
   if (!strncmp(item, CLI_SHOW_LIST, sizeof(CLI_SHOW_LIST) - 1)) {
     show_pci_devices(hardware);
index 647de24..878e80e 100644 (file)
@@ -91,7 +91,6 @@ void show_dmi_memory_modules(struct s_hardware *hardware, bool clearscreen,
 #define CLI_PCI_DEVICE "device"
 void main_show_pci(struct s_hardware *hardware);
 void handle_pci_commands(char *cli_line, struct s_hardware *hardware);
-void pci_show(char *item, struct s_hardware *hardware);
 void cli_detect_pci(struct s_hardware *hardware);
 
 // CPU STUFF