]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Change struct login_binary to be non-const
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Apr 2020 09:26:06 +0000 (12:26 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 24 Apr 2020 08:02:40 +0000 (08:02 +0000)
Required by the next commit.

src/imap-login/imap-login-client.c
src/imap-urlauth/imap-urlauth-login.c
src/login-common/login-common.h
src/login-common/main.c
src/pop3-login/client.c
src/submission-login/client.c

index 2c3cd0d50b67f4ca25e5d3533d196321c003a68a..0ccb95cdc219c7cdf55e001f71e113e60225e0a7 100644 (file)
@@ -553,7 +553,7 @@ static struct client_vfuncs imap_client_vfuncs = {
        .free = client_common_default_free,
 };
 
-static const struct login_binary imap_login_binary = {
+static struct login_binary imap_login_binary = {
        .protocol = "imap",
        .process_name = "imap-login",
        .default_port = 143,
index fcde9aaf7a4ecf2887a9e927c2785f9bd28e10c0..26ea84954b6584b68ce11cf3d454582122db3875 100644 (file)
@@ -172,7 +172,7 @@ static struct client_vfuncs imap_urlauth_vfuncs = {
        .free = client_common_default_free,
 };
 
-static const struct login_binary imap_urlauth_login_binary = {
+static struct login_binary imap_urlauth_login_binary = {
        .protocol = "imap-urlauth",
        .process_name = "imap-urlauth-login",
        .default_login_socket = LOGIN_TOKEN_DEFAULT_SOCKET,
index 23935dd43b0603a99767b7b77889e131e92d26aa..2f2628de0235b194f0ed30276ccdf8cb6f8ebda9 100644 (file)
@@ -44,7 +44,7 @@ struct login_module_register {
 };
 extern struct login_module_register login_module_register;
 
-extern const struct login_binary *login_binary;
+extern struct login_binary *login_binary;
 extern struct auth_client *auth_client;
 extern struct master_auth *master_auth;
 extern bool closing_down, login_debug;
@@ -71,7 +71,7 @@ void login_client_destroyed(void);
 /* Call to guarantee that the "anvil" global variable is initialized. */
 void login_anvil_init(void);
 
-int login_binary_run(const struct login_binary *binary,
+int login_binary_run(struct login_binary *binary,
                     int argc, char *argv[]);
 
 #endif
index 90956b29f7ad0939130fa5bfc9c9d10052bc1b0f..3a244dfc64aa99ac60e8e716c2375944be9fe01f 100644 (file)
@@ -39,7 +39,7 @@ static struct event_category event_category_auth = {
        .name = "auth",
 };
 
-const struct login_binary *login_binary;
+struct login_binary *login_binary;
 struct auth_client *auth_client;
 struct master_auth *master_auth;
 bool closing_down, login_debug;
@@ -501,7 +501,7 @@ static void main_deinit(void)
        event_unref(&event_auth);
 }
 
-int login_binary_run(const struct login_binary *binary,
+int login_binary_run(struct login_binary *binary,
                     int argc, char *argv[])
 {
        enum master_service_flags service_flags =
index 3e9cc1bfb881b35aaa08f80438f87aaab1da988c..67c1b54c8fd7c5059bf687b135d67641cb176e3d 100644 (file)
@@ -333,7 +333,7 @@ static struct client_vfuncs pop3_client_vfuncs = {
        .free = client_common_default_free,
 };
 
-static const struct login_binary pop3_login_binary = {
+static struct login_binary pop3_login_binary = {
        .protocol = "pop3",
        .process_name = "pop3-login",
        .default_port = 110,
index 6921a4386dd2c7528316324b58c7acec7ccd1947..20cc5961a2ab0aa7efa401a7ed3a0f0f06a5fdbe 100644 (file)
@@ -296,7 +296,7 @@ static struct client_vfuncs submission_client_vfuncs = {
        .proxy_get_state = submission_proxy_get_state,
 };
 
-static const struct login_binary submission_login_binary = {
+static struct login_binary submission_login_binary = {
        .protocol = "submission",
        .process_name = "submission-login",
        .default_port = 587,