X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Fsys%2Fdmu.h;h=eb6a465c48cc772cabbbe694e6a663007ab3fe15;hb=ffb21118add1a2e6cec2ce401c333b4a4e76d9a3;hp=2a3a76486a78ef3f3664f48065600f07ccae27a9;hpb=6772fb679a4205427a385d174359b2a5826da613;p=zfs.git diff --git a/include/sys/dmu.h b/include/sys/dmu.h index 2a3a764..eb6a465 100644 --- a/include/sys/dmu.h +++ b/include/sys/dmu.h @@ -641,7 +641,7 @@ typedef struct dmu_object_info { uint64_t doi_fill_count; /* number of non-empty blocks */ } dmu_object_info_t; -typedef void arc_byteswap_func_t(void *buf, size_t size); +typedef void (*const arc_byteswap_func_t)(void *buf, size_t size); typedef struct dmu_object_type_info { dmu_object_byteswap_t ot_byteswap; @@ -649,8 +649,8 @@ typedef struct dmu_object_type_info { char *ot_name; } dmu_object_type_info_t; -typedef struct dmu_object_byteswap_info { - arc_byteswap_func_t *ob_func; +typedef const struct dmu_object_byteswap_info { + arc_byteswap_func_t ob_func; char *ob_name; } dmu_object_byteswap_info_t;