mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Rename handle_map() to avoid a shadow variable
This commit is contained in:
parent
adbf4f25c2
commit
488d1ffa5d
6 changed files with 7 additions and 7 deletions
|
|
@ -44,7 +44,7 @@ static int state_hash_process(struct snapraid_state* state, block_off_t blocksta
|
|||
unsigned io_error;
|
||||
|
||||
/* maps the disks to handles */
|
||||
handle = handle_map(state, &diskmax);
|
||||
handle = handle_mapping(state, &diskmax);
|
||||
|
||||
/* buffer for reading */
|
||||
buffer = malloc_nofail(state->block_size);
|
||||
|
|
@ -690,7 +690,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
now = time(0);
|
||||
|
||||
/* maps the disks to handles */
|
||||
handle = handle_map(state, &diskmax);
|
||||
handle = handle_mapping(state, &diskmax);
|
||||
|
||||
/* rehash buffers */
|
||||
rehandle = malloc_nofail_align(diskmax * sizeof(struct snapraid_rehash), &rehandle_alloc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue