Remove C99 style variable declarations

Make it slightly more portable and move the declarations to the start of the
function.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-18 21:50:35 -08:00
parent 99a5f99527
commit 0629d44e83
2 changed files with 14 additions and 10 deletions

View File

@@ -297,6 +297,7 @@ void iscsi_defer_reconnect(struct iscsi_context *iscsi)
void iscsi_reconnect_cb(struct iscsi_context *iscsi _U_, int status,
void *command_data _U_, void *private_data _U_)
{
struct iscsi_context *old_iscsi;
int i;
if (status != SCSI_STATUS_GOOD) {
@@ -319,7 +320,7 @@ void iscsi_reconnect_cb(struct iscsi_context *iscsi _U_, int status,
return;
}
struct iscsi_context *old_iscsi = iscsi->old_iscsi;
old_iscsi = iscsi->old_iscsi;
iscsi->old_iscsi = NULL;
while (old_iscsi->outqueue) {