Skip to content

Commit

Permalink
s: missing-braces
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Jan 22, 2022
1 parent b0f4a29 commit e66c71c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/zdb/zdb.c
Expand Up @@ -2035,7 +2035,7 @@ dump_ddt(ddt_t *ddt, enum ddt_type type, enum ddt_class class)
static void
dump_all_ddts(spa_t *spa)
{
ddt_histogram_t ddh_total = {0};
ddt_histogram_t ddh_total = {{{0}}};
ddt_stat_t dds_total = {0};

for (enum zio_checksum c = 0; c < ZIO_CHECKSUM_FUNCTIONS; c++) {
Expand Down Expand Up @@ -4810,7 +4810,7 @@ static int
dump_label(const char *dev)
{
char path[MAXPATHLEN];
zdb_label_t labels[VDEV_LABELS] = {0};
zdb_label_t labels[VDEV_LABELS] = {{{{0}}}};
uint64_t psize, ashift, l2cache;
struct stat64 statbuf;
boolean_t config_found = B_FALSE;
Expand Down Expand Up @@ -6400,7 +6400,7 @@ deleted_livelists_dump_mos(spa_t *spa)
static int
dump_block_stats(spa_t *spa)
{
zdb_cb_t zcb = {0};
zdb_cb_t zcb = {{{{0}}}};
zdb_blkstats_t *zb, *tzb;
uint64_t norm_alloc, norm_space, total_alloc, total_found;
int flags = TRAVERSE_PRE | TRAVERSE_PREFETCH_METADATA |
Expand Down Expand Up @@ -6794,7 +6794,7 @@ dump_simulated_ddt(spa_t *spa)
avl_tree_t t;
void *cookie = NULL;
zdb_ddt_entry_t *zdde;
ddt_histogram_t ddh_total = {0};
ddt_histogram_t ddh_total = {{{0}}};
ddt_stat_t dds_total = {0};

avl_create(&t, ddt_entry_compare,
Expand Down

0 comments on commit e66c71c

Please sign in to comment.