]> xenbits.xensource.com Git - seabios.git/commitdiff
cleanup process_usb_op() / process_scsi_op() declarations
authorLaszlo Ersek <lersek@redhat.com>
Thu, 9 Feb 2012 15:55:30 +0000 (16:55 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 11 Feb 2012 14:27:10 +0000 (09:27 -0500)
Commit 1e749c85 removed the definition of process_usb_op(); let's remove
the declaration too.

The same commit added process_scsi_op(). The function has no declaration
that is also not a definition, and its only call site is in the same file
as the definition. Give the function internal linkage.

Build tested.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
src/block.c
src/usb-msc.h

index eeebd83b82091881d6ab65d59f90b4f5167c9886..ccf4ee6d39e0a1e136ed4148acf5686783a940a6 100644 (file)
@@ -276,7 +276,7 @@ map_floppy_drive(struct drive_s *drive_g)
  * 16bit calling interface
  ****************************************************************/
 
-int
+static int
 process_scsi_op(struct disk_op_s *op)
 {
     if (!CONFIG_USB_MSC)
index a8686a39d4b1f9c4bf3e76d1068bdd0362df9241..12d749c3de1b855bde613f3bb25645f3ee93f263 100644 (file)
@@ -8,7 +8,6 @@ struct usb_interface_descriptor;
 struct usb_pipe;
 int usb_msc_init(struct usb_pipe *pipe
                  , struct usb_interface_descriptor *iface, int imax);
-int process_usb_op(struct disk_op_s *op);
 
 
 /****************************************************************