summaryrefslogtreecommitdiff
path: root/source4/param/share_classic.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-08 20:49:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:46 -0500
commit46d16c0131f69f320f58a2e074d7623f23311e1e (patch)
treeeacd67cb4b8ce5ae16dfe5f72129514cb989a014 /source4/param/share_classic.c
parent9fd1b1c130ad6886111df9bf3e3de86a64dea7f7 (diff)
downloadsamba-46d16c0131f69f320f58a2e074d7623f23311e1e.tar.gz
samba-46d16c0131f69f320f58a2e074d7623f23311e1e.tar.bz2
samba-46d16c0131f69f320f58a2e074d7623f23311e1e.zip
r25041: Use context in more places, fix warnings.
(This used to be commit 9bb8738945b80d308e592bbecd44fe4e4f048ad8)
Diffstat (limited to 'source4/param/share_classic.c')
-rw-r--r--source4/param/share_classic.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source4/param/share_classic.c b/source4/param/share_classic.c
index 46a853b41a..df86e2be4f 100644
--- a/source4/param/share_classic.c
+++ b/source4/param/share_classic.c
@@ -326,19 +326,19 @@ static NTSTATUS sclassic_get_config(TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
+static const 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
+};
+
NTSTATUS share_classic_init(void)
{
- 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);
}