From: Pavel Kalugin Date: Sun, 6 Aug 2023 14:25:33 +0000 (+0300) Subject: s3:param: Use lpcfg_set_cmdline() X-Git-Tag: tevent-0.16.0~850 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c291ab2a0303bbcfe1591a075868daf173e30541;p=thirdparty%2Fsamba.git s3:param: Use lpcfg_set_cmdline() Signed-off-by: Pavel Kalugin Reviewed-by: Andreas Schneider --- diff --git a/source3/param/test_lp_load.c b/source3/param/test_lp_load.c index 9f3d5516805..493aa316d38 100644 --- a/source3/param/test_lp_load.c +++ b/source3/param/test_lp_load.c @@ -19,6 +19,7 @@ #include "includes.h" #include "lib/cmdline/cmdline.h" +#include "lib/param/param.h" int main(int argc, const char **argv) { @@ -46,6 +47,7 @@ int main(int argc, const char **argv) }; TALLOC_CTX *frame = talloc_stackframe(); + struct loadparm_context *lp_ctx = NULL; smb_init_locale(); @@ -57,7 +59,8 @@ int main(int argc, const char **argv) TALLOC_FREE(frame); exit(ENOMEM); } - lp_set_cmdline("log level", "0"); + lp_ctx = samba_cmdline_get_lp_ctx(); + lpcfg_set_cmdline(lp_ctx, "log level", "0"); pc = samba_popt_get_context(getprogname(), argc,