From: Alan T. DeKok Date: Sat, 30 Nov 2024 21:30:00 +0000 (-0500) Subject: remove extraneous ; X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b53b79bf979a62b86189e3d2ab024c3714c723;p=thirdparty%2Ffreeradius-server.git remove extraneous ; --- diff --git a/src/lib/server/cf_util.c b/src/lib/server/cf_util.c index ad9d3d30eb6..1d33883caf1 100644 --- a/src/lib/server/cf_util.c +++ b/src/lib/server/cf_util.c @@ -1104,7 +1104,7 @@ CONF_SECTION *_cf_section_find_parent(CONF_ITEM const *ci, found = cf_item_to_section(ci); if (cf_section_name_cmp(found, name1, name2) == 0) return found; - }; + } return NULL; } diff --git a/src/lib/server/client.c b/src/lib/server/client.c index 95a5c55d3a3..ccd26b4fdba 100644 --- a/src/lib/server/client.c +++ b/src/lib/server/client.c @@ -781,7 +781,7 @@ fr_client_t *client_afrom_cs(TALLOC_CTX *ctx, CONF_SECTION *cs, CONF_SECTION *se * Find the virtual server for this client. */ if (c->server) { - virtual_server_t const *vs;; + virtual_server_t const *vs; if (server_cs) { cf_log_err(cs, "Clients inside of a 'server' section cannot point to a server"); goto error; diff --git a/src/lib/util/cbor.c b/src/lib/util/cbor.c index d9d44a383f4..cf3cff02023 100644 --- a/src/lib/util/cbor.c +++ b/src/lib/util/cbor.c @@ -113,9 +113,9 @@ done: return fr_dbuff_set(dbuff, &work_dbuff); } -#define cbor_encode_array(_dbuff, _size) cbor_encode_integer(_dbuff, CBOR_ARRAY, _size); +#define cbor_encode_array(_dbuff, _size) cbor_encode_integer(_dbuff, CBOR_ARRAY, _size) -#define cbor_encode_tag(_dbuff, _tag) cbor_encode_integer(_dbuff, CBOR_TAG, _tag); +#define cbor_encode_tag(_dbuff, _tag) cbor_encode_integer(_dbuff, CBOR_TAG, _tag) /* * Make many things easier diff --git a/src/lib/util/dict_fixup.c b/src/lib/util/dict_fixup.c index 1625470d699..f970cd8366f 100644 --- a/src/lib/util/dict_fixup.c +++ b/src/lib/util/dict_fixup.c @@ -212,7 +212,7 @@ fr_dict_attr_t const *dict_protocol_reference(fr_dict_attr_t const *rel, char co return NULL; } da = da->parent; - }; + } } else { da = absolute_root ? dict->root : rel; } diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index 05185eec10b..501073af6f9 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -952,7 +952,7 @@ static int dict_read_process_common(dict_tokenize_ctx_t *dctx, fr_dict_attr_t ** if (strncmp(name, "Attr-", 5) == 0) { fr_strerror_const("Invalid name"); return -1; - }; + } /* * Allocate the attribute here, and then fill in the fields @@ -1750,7 +1750,7 @@ static int dict_read_process_end(dict_tokenize_ctx_t *dctx, char **argv, int arg /* * Pop the stack to get the attribute we're ending. */ - current = dict_dctx_pop(dctx)->da;; + current = dict_dctx_pop(dctx)->da; /* * No checks on the attribute, we're just popping _A_ frame, @@ -3038,7 +3038,7 @@ static int _dict_from_file(dict_tokenize_ctx_t *dctx, do_begin = true; argv_p++; argc--; - }; + } if (fr_dict_keyword(&parser, keywords, NUM_ELEMENTS(keywords), argv_p[0], NULL)) { if (do_begin && !parser->begin) { diff --git a/src/lib/util/dict_util.c b/src/lib/util/dict_util.c index 01cc360a8c4..757c6a33c1b 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -786,7 +786,7 @@ int dict_attr_init_common(char const *filename, int line, if (unlikely(dict_attr_type_init(da_p, type) < 0)) return -1; - if (parent && (dict_attr_parent_init(da_p, parent) < 0)) return -1;; + if (parent && (dict_attr_parent_init(da_p, parent) < 0)) return -1; if (args->ref && (dict_attr_ref_aset(da_p, args->ref, FR_DICT_ATTR_REF_ALIAS) < 0)) return -1;