mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Rename some shadow variables
This removes some warnings in gcc 4.6 version.
This commit is contained in:
parent
0ba7e649d1
commit
fb759fec84
13 changed files with 155 additions and 155 deletions
|
|
@ -752,13 +752,13 @@ static int devdown(dev_t device, const char* name, const char* custom)
|
|||
* There isn't a defined way to spin up a device,
|
||||
* so we just do a generic write.
|
||||
*/
|
||||
static int devup(const char* mount)
|
||||
static int devup(const char* mountpoint)
|
||||
{
|
||||
int ret;
|
||||
char path[PATH_MAX];
|
||||
|
||||
/* add a temporary name used for writing */
|
||||
pathprint(path, sizeof(path), "%s.snapraid-spinup", mount);
|
||||
pathprint(path, sizeof(path), "%s.snapraid-spinup", mountpoint);
|
||||
|
||||
/* do a generic write, and immediately undo it */
|
||||
ret = mkdir(path, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue