Ditch a couple of unneeded variables to silence gcc warnings

This commit is contained in:
Alex Young
2012-05-31 14:09:35 +01:00
parent b90b73fba6
commit 1aec12613c
2 changed files with 4 additions and 5 deletions

View File

@@ -421,7 +421,8 @@ int cleanup_and_find_client_slot(struct mode_serve_params* params)
strcpy(s_client_address, "???");
inet_ntop(
params->nbd_client[i].address.generic.sa_family,
sockaddr_address_data(&params->nbd_client[i].address.generic), s_client_address,
sockaddr_address_data(&params->nbd_client[i].address.generic),
s_client_address,
64
);
@@ -430,9 +431,8 @@ int cleanup_and_find_client_slot(struct mode_serve_params* params)
SERVER_ERROR_ON_FAILURE(-1, "Problem with joining thread");
}
else {
uint64_t status1 = (uint64_t) status;
params->nbd_client[i].thread = 0;
debug("nbd thread %d exited (%s) with status %ld", (int) params->nbd_client[i].thread, s_client_address, status1);
debug("nbd thread %d exited (%s) with status %ld", (int) params->nbd_client[i].thread, s_client_address, (uint64_t)status);
}
}