From: Kevin O'Connor Date: Thu, 31 Mar 2016 01:38:56 +0000 (-0400) Subject: mpt-scsi: Declare 'int i' outside of for loop for older compilers X-Git-Tag: rel-1.10.0~59 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6b76e69332719c4c2fb5c47e04cc629ad5dd9b71;p=seabios.git mpt-scsi: Declare 'int i' outside of for loop for older compilers Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/mpt-scsi.c b/src/hw/mpt-scsi.c index 4e31fec..7d1aa3d 100644 --- a/src/hw/mpt-scsi.c +++ b/src/hw/mpt-scsi.c @@ -278,7 +278,8 @@ init_mpt_scsi(struct pci_device *pci, const char *dev_name) // Post reply message used for SCSI errors outl((u32)&reply_msg[0], iobase + MPT_REG_REP_Q); - for (int i = 0; i < 7; i++) + int i; + for (i = 0; i < 7; i++) mpt_scsi_scan_target(pci, iobase, i); }