btrfs-progs: tests: fix -Wshadow warnings in fssum and fsstress

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-10-23 23:34:58 +02:00
parent 2069bfe016
commit 9dcb5afa15
2 changed files with 11 additions and 4 deletions

View File

@ -1227,7 +1227,7 @@ again:
}
static bool
keep_running(opnum_t opno, opnum_t operations)
keep_running(opnum_t opno, opnum_t opcount)
{
int ret;
@ -1243,7 +1243,7 @@ keep_running(opnum_t opno, opnum_t operations)
return now.tv_sec <= deadline.tv_sec;
}
return opno < operations;
return opno < opcount;
}
void
@ -2117,9 +2117,9 @@ non_btrfs_freq(const char *path)
ops[btrfs_ops[i]].freq = 0;
}
static void inode_info(char *str, size_t sz, struct stat64 *s, int verbose)
static void inode_info(char *str, size_t sz, struct stat64 *s, int be_verbose)
{
if (verbose)
if (be_verbose)
snprintf(str, sz, "[%ld %ld %d %d %lld %lld]",
verifiable_log ? -1: (long)s->st_ino,
(long)s->st_nlink, s->st_uid, s->st_gid,

View File

@ -16,6 +16,13 @@
* Boston, MA 021110-1307, USA.
*/
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#define _LARGEFILE64_SOURCE
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "kerncompat.h"
#include <stdio.h>
#include <stdlib.h>