summaryrefslogtreecommitdiff
path: root/source4/param/share_classic.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-09-15 05:18:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:44 -0500
commitb0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd (patch)
tree64217e71e2acf9c49c12bea35adf008373edc78c /source4/param/share_classic.c
parentd928bce0d8ef5abbb1ef8fe659836b22e62266d1 (diff)
downloadsamba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.tar.gz
samba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.tar.bz2
samba-b0fb34fd24f5d73cfc2d3aca09379d85b9fb57dd.zip
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)
Diffstat (limited to 'source4/param/share_classic.c')
-rw-r--r--source4/param/share_classic.c20
1 files changed, 10 insertions, 10 deletions
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);
}