r24670: Use torture functions for settings.
[kai/samba.git] / source4 / torture / raw / oplock.c
index d2e15f8e82da87c415ea2ba9fd6656265d2a1905..1d6b22244af2ed75a15fb7ed0d066fc49fa5aa31 100644 (file)
@@ -1313,7 +1313,7 @@ BOOL torture_bench_oplock(struct torture_context *torture)
        struct smbcli_state **cli;
        BOOL ret = True;
        TALLOC_CTX *mem_ctx = talloc_new(torture);
-       int torture_nprocs = lp_parm_int(-1, "torture", "nprocs", 4);
+       int torture_nprocs = torture_setting_int(torture, "nprocs", 4);
        int i, count=0;
        int timelimit = torture_setting_int(torture, "timelimit", 10);
        union smb_open io;