From b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 15 Sep 2006 05:18:53 +0000 Subject: r18542: Some late nite work. Now we can add and remove a share from the "Computer Management" console (not yet modify!) usinf share backend = ldb (This used to be commit ae2f6d4a5a372a37b9783a02bb8e7f16588b21f0) --- source4/param/share_classic.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source4/param/share_classic.c') diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c index 59c58e4d54..75f66b1fd4 100644 --- a/source4/param/share_classic.c +++ b/source4/param/share_classic.c @@ -312,16 +312,16 @@ NTSTATUS sclassic_get_config(TALLOC_CTX *mem_ctx, NTSTATUS share_classic_init(void) { - struct share_ops ops; - - ops.name = "classic"; - ops.init = sclassic_init; - ops.string_option = sclassic_string_option; - ops.int_option = sclassic_int_option; - ops.bool_option = sclassic_bool_option; - ops.string_list_option = sclassic_string_list_option; - ops.list_all = sclassic_list_all; - ops.get_config = sclassic_get_config; + static struct share_ops ops = { + .name = "classic", + .init = sclassic_init, + .string_option = sclassic_string_option, + .int_option = sclassic_int_option, + .bool_option = sclassic_bool_option, + .string_list_option = sclassic_string_list_option, + .list_all = sclassic_list_all, + .get_config = sclassic_get_config + }; return share_register(&ops); } -- cgit