Signed-off-by: Pavel Kalugin <pkalugin@inno.tech>
Reviewed-by: Andreas Schneider <asn@samba.org>
#include "lib/smbd_shim.h"
#include "system/filesys.h"
#include "lib/global_contexts.h"
+#include "lib/param/param.h"
/* List to hold groups of commands */
static struct cmd_list {
}
if (argc == 2) {
- lp_set_cmdline("log level", argv[1]);
+ struct loadparm_context *lp_ctx = samba_cmdline_get_lp_ctx();
+ lpcfg_set_cmdline(lp_ctx, "log level", argv[1]);
}
printf("debuglevel is %d\n", DEBUGLEVEL);