From: Arran Cudbard-Bell Date: Fri, 15 May 2026 20:17:12 +0000 (-0600) Subject: More const fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6abe6539d79802ff05affbca9827e564400d7d;p=thirdparty%2Ffreeradius-server.git More const fixes --- diff --git a/src/bin/radclient.c b/src/bin/radclient.c index 05282cc0e0a..8793b131a01 100644 --- a/src/bin/radclient.c +++ b/src/bin/radclient.c @@ -1812,14 +1812,14 @@ int main(int argc, char **argv) /* * Look for CoA filename */ - q = strchr(files->filters, c); + q = UNCONST(char *, strchr(files->filters, c)); if (q) { do_coa = true; *(q++) = '\0'; files->coa_reply = q; - q = strchr(files->coa_reply, c); + q = UNCONST(char *, strchr(files->coa_reply, c)); if (q) { *(q++) = '\0'; files->coa_filter = q; diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 79329887b27..3580019ba16 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -4264,11 +4264,11 @@ static int process_path(bool *exit_now, TALLOC_CTX *ctx, command_config_t const */ if ((receipt_dir || receipt_file) && (strncmp(path, "src/tests/unit/", 15) == 0)) { - p = strchr(path + 15, '/'); + p = UNCONST(char *, strchr(path + 15, '/')); if (!p) { printf("UNIT-TEST %s\n", path + 15); } else { - char *q = strchr(p + 1, '/'); + char *q = UNCONST(char *, strchr(p + 1, '/')); *p = '\0';