From: Alan T. DeKok Date: Thu, 23 Oct 2025 09:52:01 +0000 (+0200) Subject: fix more errors found by using -std=c23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=793b9a563e3105195b9bf8342dae72bbe5e9ff70;p=thirdparty%2Ffreeradius-server.git fix more errors found by using -std=c23 --- diff --git a/src/lib/server/virtual_servers.c b/src/lib/server/virtual_servers.c index 4c1f8290e4..b2f1ef5994 100644 --- a/src/lib/server/virtual_servers.c +++ b/src/lib/server/virtual_servers.c @@ -912,7 +912,7 @@ static int8_t listen_addr_cmp(void const *one, void const *two) */ fr_listen_t *listen_find_any(fr_listen_t *li) { - if (!listen_addr_root) return false; + if (!listen_addr_root) return NULL; return fr_rb_find(listen_addr_root, li); } diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index f37f45856b..fbad2e502c 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -753,7 +753,7 @@ static xlat_action_t xlat_func_file_cat(TALLOC_CTX *ctx, fr_dcursor_t *out, goto fail; } - MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_OCTETS, false)); + MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_OCTETS, NULL)); fr_value_box_mem_alloc(dst, &buffer, dst, NULL, buf.st_size, true); len = read(fd, buffer, buf.st_size); diff --git a/src/protocols/tacacs/decode.c b/src/protocols/tacacs/decode.c index 2b9c3eb6f4..21af4216b2 100644 --- a/src/protocols/tacacs/decode.c +++ b/src/protocols/tacacs/decode.c @@ -1076,7 +1076,7 @@ static ssize_t fr_tacacs_decode_proto(TALLOC_CTX *ctx, fr_pair_list_t *out, uint fr_assert(!dv || (dv->type == FR_TYPE_VENDOR)); return fr_tacacs_decode(ctx, out, dv, data, data_len, NULL, - test_ctx->secret, (talloc_array_length(test_ctx->secret)-1), false); + test_ctx->secret, (talloc_array_length(test_ctx->secret)-1), NULL); } static int _encode_test_ctx(fr_tacacs_ctx_t *proto_ctx)