aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zdb
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2023-07-03 12:32:53 +1000
committerBrian Behlendorf <[email protected]>2024-02-15 11:45:19 -0800
commitc8f694fe39ea7c1a99ced14064b909b515c53843 (patch)
tree4697eb0213a05fbf90398d218994e4132197fd53 /cmd/zdb
parent8e414fcdf40b52442d8fa1faf07c70d291aa8ac2 (diff)
ddt: typedef ddt_type and ddt_class
Mostly for consistency, so the reader is less likely to wonder why these things look different. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 63fb41df8..7f17de03d 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -1905,7 +1905,7 @@ dump_dedup_ratio(const ddt_stat_t *dds)
}
static void
-dump_ddt(ddt_t *ddt, enum ddt_type type, enum ddt_class class)
+dump_ddt(ddt_t *ddt, ddt_type_t type, ddt_class_t class)
{
char name[DDT_NAMELEN];
ddt_entry_t dde;
@@ -1965,8 +1965,8 @@ dump_all_ddts(spa_t *spa)
for (enum zio_checksum c = 0; c < ZIO_CHECKSUM_FUNCTIONS; c++) {
ddt_t *ddt = spa->spa_ddt[c];
- for (enum ddt_type type = 0; type < DDT_TYPES; type++) {
- for (enum ddt_class class = 0; class < DDT_CLASSES;
+ for (ddt_type_t type = 0; type < DDT_TYPES; type++) {
+ for (ddt_class_t class = 0; class < DDT_CLASSES;
class++) {
dump_ddt(ddt, type, class);
}