r25041: Use context in more places, fix warnings.
[kai/samba.git] / source4 / param / share_classic.c
index 46a853b41a0ec938e9f1ef981b9000dbc21a064e..df86e2be4fca4a4636260945e1218e2e7dbe756e 100644 (file)
@@ -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);
 }