]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-old-stats plugin: Finish renaming the plugin
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 22 Dec 2017 07:42:50 +0000 (09:42 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 22 Dec 2017 13:28:49 +0000 (15:28 +0200)
The init functions and dependency were named wrong, so it didn't work.

src/plugins/imap-old-stats/imap-stats-plugin.c
src/plugins/imap-old-stats/imap-stats-plugin.h

index d4c3e0d0cd3f621380d0db360f51b6ad534e75ff..4e17323a5e9462491ed8ea1de7e5c7df5186fc8a 100644 (file)
@@ -114,15 +114,15 @@ static void stats_command_post(struct client_command_context *cmd)
        stats_connection_send(suser->stats_conn, str);
 }
 
-void imap_stats_plugin_init(struct module *module ATTR_UNUSED)
+void imap_old_stats_plugin_init(struct module *module ATTR_UNUSED)
 {
        command_hook_register(stats_command_pre, stats_command_post);
 }
 
-void imap_stats_plugin_deinit(void)
+void imap_old_stats_plugin_deinit(void)
 {
        command_hook_unregister(stats_command_pre, stats_command_post);
 }
 
-const char *imap_stats_plugin_dependencies[] = { "stats", NULL };
+const char *imap_stats_plugin_dependencies[] = { "old_stats", NULL };
 const char imap_stats_plugin_binary_dependency[] = "imap";
index 2998b340f6c1d965cbe7eaad2fb9b30097bd2e93..2a95b53e14cdf11b4f69c97c2345557900746571 100644 (file)
@@ -6,7 +6,7 @@ struct module;
 extern const char *imap_stats_plugin_dependencies[];
 extern const char imap_stats_plugin_binary_dependency[];
 
-void imap_stats_plugin_init(struct module *module);
-void imap_stats_plugin_deinit(void);
+void imap_old_stats_plugin_init(struct module *module);
+void imap_old_stats_plugin_deinit(void);
 
 #endif