mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 13:20:28 -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
|
|
@ -83,10 +83,10 @@ void state_list(struct snapraid_state* state)
|
|||
|
||||
/* for each link */
|
||||
for (j = disk->linklist; j != 0; j = j->next) {
|
||||
struct snapraid_link* link = j->data;
|
||||
struct snapraid_link* slink = j->data;
|
||||
const char* type;
|
||||
|
||||
switch (link->flag & FILE_IS_LINK_MASK) {
|
||||
switch (slink->flag & FILE_IS_LINK_MASK) {
|
||||
case FILE_IS_HARDLINK : type = "hardlink"; break;
|
||||
case FILE_IS_SYMLINK : type = "symlink"; break;
|
||||
case FILE_IS_SYMDIR : type = "symdir"; break;
|
||||
|
|
@ -98,13 +98,13 @@ void state_list(struct snapraid_state* state)
|
|||
|
||||
++link_count;
|
||||
|
||||
log_tag("link_%s:%s:%s:%s\n", type, disk->name, esc(link->sub), esc(link->linkto));
|
||||
log_tag("link_%s:%s:%s:%s\n", type, disk->name, esc(slink->sub), esc(slink->linkto));
|
||||
|
||||
printf("%12s ", type);
|
||||
printf(" ");
|
||||
if (msg_level >= MSG_VERBOSE)
|
||||
printf(" ");
|
||||
printf("%s%s -> %s%s\n", disk->dir, link->sub, disk->dir, link->linkto);
|
||||
printf("%s%s -> %s%s\n", disk->dir, slink->sub, disk->dir, slink->linkto);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue