Ditch a couple of unneeded variables to silence gcc warnings
This commit is contained in:
@@ -82,8 +82,7 @@ int parse_acl(struct ip_and_mask (**out)[], int max, char **entries)
|
||||
}
|
||||
|
||||
for (i=0; i < max; i++) {
|
||||
struct ip_and_mask* entry = list[i];
|
||||
debug("acl entry %d @ %p has mask %d", i, entry, entry->mask);
|
||||
debug("acl entry %d @ %p has mask %d", i, list[i], list[i]->mask);
|
||||
}
|
||||
|
||||
return max;
|
||||
|
@@ -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(¶ms->nbd_client[i].address.generic), s_client_address,
|
||||
sockaddr_address_data(¶ms->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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user