btrfs-porgs: qgroup: rename variable to avoid shadowing

Reported by gcc -Wshadow .

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-01-12 14:34:41 +01:00
parent 407f928cd2
commit df3a134d0e

View File

@ -99,11 +99,11 @@ static int qgroup_assign(int assign, int argc, char **argv)
*/ */
if (ret > 0) { if (ret > 0) {
if (rescan) { if (rescan) {
struct btrfs_ioctl_quota_rescan_args args; struct btrfs_ioctl_quota_rescan_args qargs;
printf("Quota data changed, rescan scheduled\n"); printf("Quota data changed, rescan scheduled\n");
memset(&args, 0, sizeof(args)); memset(&qargs, 0, sizeof(qargs));
ret = ioctl(fd, BTRFS_IOC_QUOTA_RESCAN, &args); ret = ioctl(fd, BTRFS_IOC_QUOTA_RESCAN, &qargs);
if (ret < 0) if (ret < 0)
error("quota rescan failed: %s", error("quota rescan failed: %s",
strerror(errno)); strerror(errno));