From: Alan T. DeKok Date: Fri, 20 Oct 2017 15:40:02 +0000 (-0400) Subject: logging a report takes 'const' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aab5a55deeb2ddcd330ba17ca0bc2c26c29e26c3;p=thirdparty%2Ffreeradius-server.git logging a report takes 'const' --- diff --git a/src/include/debug.h b/src/include/debug.h index d86e6df2747..c2cbbb2d710 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -63,7 +63,7 @@ void fr_panic_on_free(TALLOC_CTX *ctx); int fr_set_dumpable_init(void); int fr_set_dumpable(bool allow_core_dumps); int fr_reset_dumpable(void); -int fr_log_talloc_report(TALLOC_CTX *ctx); +int fr_log_talloc_report(TALLOC_CTX const *ctx); void fr_fault(int sig); void fr_talloc_fault_setup(void); int fr_fault_setup(char const *cmd, char const *program); diff --git a/src/lib/util/debug.c b/src/lib/util/debug.c index ff02c29d801..cbdcd6f9138 100644 --- a/src/lib/util/debug.c +++ b/src/lib/util/debug.c @@ -829,7 +829,7 @@ static void _fr_talloc_log(char const *msg) * * @param ctx to generate a report for, may be NULL in which case the root context is used. */ -int fr_log_talloc_report(TALLOC_CTX *ctx) +int fr_log_talloc_report(TALLOC_CTX const *ctx) { #define TALLOC_REPORT_MAX_DEPTH 20