From: Volker Lendecke Date: Sat, 26 Dec 2020 08:59:04 +0000 (+0100) Subject: lib: Make pfh_daemon_config take a const default config X-Git-Tag: samba-4.14.0rc1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7a6dba21ce345195bb80810d6c3de28ed043947;p=thirdparty%2Fsamba.git lib: Make pfh_daemon_config take a const default config Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/server_prefork_util.c b/source3/lib/server_prefork_util.c index 3e14015c81e..c5954a14a1d 100644 --- a/source3/lib/server_prefork_util.c +++ b/source3/lib/server_prefork_util.c @@ -23,7 +23,7 @@ void pfh_daemon_config(const char *daemon_name, struct pf_daemon_config *cfg, - struct pf_daemon_config *default_cfg) + const struct pf_daemon_config *default_cfg) { int min, max, rate, allow, life; diff --git a/source3/lib/server_prefork_util.h b/source3/lib/server_prefork_util.h index 65e85dd3505..22297120353 100644 --- a/source3/lib/server_prefork_util.h +++ b/source3/lib/server_prefork_util.h @@ -39,7 +39,7 @@ struct pf_daemon_config { void pfh_daemon_config(const char *daemon_name, struct pf_daemon_config *cfg, - struct pf_daemon_config *default_cfg); + const struct pf_daemon_config *default_cfg); void pfh_manage_pool(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx,