From: Arran Cudbard-Bell Date: Thu, 10 Oct 2024 19:14:42 +0000 (-0400) Subject: Whitespace X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c05dbd5acdc2ce7fe21b14ebefe4508965796b1;p=thirdparty%2Ffreeradius-server.git Whitespace --- diff --git a/src/lib/util/dict.h b/src/lib/util/dict.h index 0488c783e27..9cc5efd2a44 100644 --- a/src/lib/util/dict.h +++ b/src/lib/util/dict.h @@ -358,10 +358,10 @@ typedef struct fr_dict_gctx_s fr_dict_gctx_t; /* * Dictionary constants */ -#define FR_DICT_PROTO_MAX_NAME_LEN (128) //!< Maximum length of a protocol name. -#define FR_DICT_ENUM_MAX_NAME_LEN (128) //!< Maximum length of a enum value. -#define FR_DICT_VENDOR_MAX_NAME_LEN (128) //!< Maximum length of a vendor name. -#define FR_DICT_ATTR_MAX_NAME_LEN (128) //!< Maximum length of a attribute name. +#define FR_DICT_PROTO_MAX_NAME_LEN (128) //!< Maximum length of a protocol name. +#define FR_DICT_ENUM_MAX_NAME_LEN (128) //!< Maximum length of a enum value. +#define FR_DICT_VENDOR_MAX_NAME_LEN (128) //!< Maximum length of a vendor name. +#define FR_DICT_ATTR_MAX_NAME_LEN (128) //!< Maximum length of a attribute name. /** Maximum level of TLV nesting allowed */ diff --git a/src/lib/util/dict_ext.c b/src/lib/util/dict_ext.c index f3c2444b30a..16fec42b84a 100644 --- a/src/lib/util/dict_ext.c +++ b/src/lib/util/dict_ext.c @@ -167,11 +167,11 @@ fr_ext_t const fr_dict_attr_ext_def = { .min = sizeof(char), .has_hdr = true, .fixup = fr_dict_attr_ext_name_fixup, - .can_copy = false, /* Name may change, and we can only set it once */ + .can_copy = false, /* Name may change, and we can only set it once */ }, [FR_DICT_ATTR_EXT_CHILDREN] = { .min = sizeof(fr_dict_attr_ext_children_t), - .can_copy = false, /* Limitation in hashing scheme we use */ + .can_copy = false, /* Limitation in hashing scheme we use */ }, [FR_DICT_ATTR_EXT_REF] = { .min = sizeof(fr_dict_attr_ext_ref_t), @@ -185,7 +185,7 @@ fr_ext_t const fr_dict_attr_ext_def = { [FR_DICT_ATTR_EXT_DA_STACK] = { .min = sizeof(fr_dict_attr_ext_da_stack_t), .has_hdr = true, - .can_copy = false /* Reinitialised for each new attribute */ + .can_copy = false /* Reinitialised for each new attribute */ }, [FR_DICT_ATTR_EXT_ENUMV] = { .min = sizeof(fr_dict_attr_ext_enumv_t), @@ -194,12 +194,12 @@ fr_ext_t const fr_dict_attr_ext_def = { }, [FR_DICT_ATTR_EXT_NAMESPACE] = { .min = sizeof(fr_dict_attr_ext_namespace_t), - .can_copy = false, /* Same limitation as ext_children */ + .can_copy = false, /* Same limitation as ext_children */ }, [FR_DICT_ATTR_EXT_PROTOCOL_SPECIFIC] = { - .min = FR_EXT_ALIGNMENT, /* allow for one byte of protocol stuff */ - .has_hdr = true, /* variable sized */ - .can_copy = false /* only the protocol can copy it */ + .min = FR_EXT_ALIGNMENT, /* allow for one byte of protocol stuff */ + .has_hdr = true, /* variable sized */ + .can_copy = false /* only the protocol can copy it */ }, [FR_DICT_ATTR_EXT_MAX] = {} } @@ -231,4 +231,3 @@ fr_ext_t const fr_dict_enum_ext_def = { [FR_DICT_ENUM_EXT_MAX] = {} } }; - diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 6340eaf7805..e0dd4137852 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -829,7 +829,7 @@ static int dict_process_ref(dict_tokenize_ctx_t *ctx, fr_dict_attr_t const *pare add_fixup: if (dict_fixup_group(&ctx->fixup, CURRENT_FRAME(ctx)->filename, CURRENT_FRAME(ctx)->line, UNCONST(fr_dict_attr_t *, da), ref) < 0) goto fail; - + talloc_free(ref); return 0; }