[dovecot-cvs] dovecot: Declare extern struct mech_modules also const

dovecot at dovecot.org dovecot at dovecot.org
Tue May 22 15:43:58 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/209a71c37012
changeset: 5641:209a71c37012
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 22 15:43:51 2007 +0300
description:
Declare extern struct mech_modules also const

diffstat:

1 file changed, 11 insertions(+), 11 deletions(-)
src/auth/mech.c |   22 +++++++++++-----------

diffs (33 lines):

diff -r 8591bc9961d9 -r 209a71c37012 src/auth/mech.c
--- a/src/auth/mech.c	Tue May 22 09:47:45 2007 +0400
+++ b/src/auth/mech.c	Tue May 22 15:43:51 2007 +0300
@@ -62,18 +62,18 @@ void mech_generic_auth_free(struct auth_
 	pool_unref(request->pool);
 }
 
-extern struct mech_module mech_plain;
-extern struct mech_module mech_login;
-extern struct mech_module mech_apop;
-extern struct mech_module mech_cram_md5;
-extern struct mech_module mech_digest_md5;
-extern struct mech_module mech_ntlm;
-extern struct mech_module mech_otp;
-extern struct mech_module mech_skey;
-extern struct mech_module mech_rpa;
-extern struct mech_module mech_anonymous;
+extern const struct mech_module mech_plain;
+extern const struct mech_module mech_login;
+extern const struct mech_module mech_apop;
+extern const struct mech_module mech_cram_md5;
+extern const struct mech_module mech_digest_md5;
+extern const struct mech_module mech_ntlm;
+extern const struct mech_module mech_otp;
+extern const struct mech_module mech_skey;
+extern const struct mech_module mech_rpa;
+extern const struct mech_module mech_anonymous;
 #ifdef HAVE_GSSAPI
-extern struct mech_module mech_gssapi;
+extern const struct mech_module mech_gssapi;
 #endif
 
 void mech_init(void)


More information about the dovecot-cvs mailing list