diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-28 20:04:58 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-28 20:04:58 +0100 |
commit | 2ba62662f8e2578153be3125eb557b9349ccfd3b (patch) | |
tree | 829349576e6fa8431573abed7676b2cd61b98485 /source4/param/tests/loadparm.c | |
parent | fc6bc92e116d3891671a77bc4564047eefd69f95 (diff) | |
download | samba-2ba62662f8e2578153be3125eb557b9349ccfd3b.tar.gz samba-2ba62662f8e2578153be3125eb557b9349ccfd3b.tar.bz2 samba-2ba62662f8e2578153be3125eb557b9349ccfd3b.zip |
Remove sDefault as static variable.
(This used to be commit 16f36ce499e93860dd535034a584ec2b93e7a172)
Diffstat (limited to 'source4/param/tests/loadparm.c')
-rw-r--r-- | source4/param/tests/loadparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/tests/loadparm.c b/source4/param/tests/loadparm.c index 92871e043d..49fcdf7249 100644 --- a/source4/param/tests/loadparm.c +++ b/source4/param/tests/loadparm.c @@ -129,7 +129,7 @@ static bool test_lp_parm_bytes(struct torture_context *tctx) static bool test_lp_do_service_parameter(struct torture_context *tctx) { struct loadparm_context *lp_ctx = loadparm_init(tctx); - struct loadparm_service *service = lp_add_service(lp_ctx, &sDefault, "foo"); + struct loadparm_service *service = lp_add_service(lp_ctx, lp_default_service(lp_ctx), "foo"); torture_assert(tctx, lp_do_service_parameter(lp_ctx, service, "some:thing", "foo"), "lp_set_option failed"); torture_assert_str_equal(tctx, lp_parm_string(lp_ctx, service, "some", "thing"), "foo", @@ -140,7 +140,7 @@ static bool test_lp_do_service_parameter(struct torture_context *tctx) static bool test_lp_service(struct torture_context *tctx) { struct loadparm_context *lp_ctx = loadparm_init(tctx); - struct loadparm_service *service = lp_add_service(lp_ctx, &sDefault, "foo"); + struct loadparm_service *service = lp_add_service(lp_ctx, lp_default_service(lp_ctx), "foo"); torture_assert(tctx, service == lp_service(lp_ctx, "foo"), "invalid service"); return true; } |