From: Alan T. DeKok Date: Fri, 20 Jan 2023 13:04:19 +0000 (-0500) Subject: print out sizes of configuration things, too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf636415e8d8a9812b3f5b0b3de33157a4dd4f85;p=thirdparty%2Ffreeradius-server.git print out sizes of configuration things, too --- diff --git a/src/bin/radsizes.c b/src/bin/radsizes.c index 43d2273c9f0..32d994ed961 100644 --- a/src/bin/radsizes.c +++ b/src/bin/radsizes.c @@ -2,13 +2,14 @@ #include #include +#include #include #include #include int main(UNUSED int argc, UNUSED char **argv) { -#define SIZEOF(_struct) printf("%-24s\t%zu bytes\n", STRINGIFY(_struct), sizeof(_struct)) +#define SIZEOF(_struct) printf("%-24s\t%zu\tbytes\n", STRINGIFY(_struct), sizeof(_struct)) SIZEOF(fr_dict_attr_t); SIZEOF(fr_dict_attr_flags_t); @@ -17,6 +18,10 @@ int main(UNUSED int argc, UNUSED char **argv) SIZEOF(fr_dlist_t); SIZEOF(fr_dlist_head_t); + SIZEOF(CONF_ITEM); + SIZEOF(CONF_PAIR); + SIZEOF(CONF_SECTION); + SIZEOF(fr_pair_t); SIZEOF(fr_pair_list_t);