diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:27:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:27:09 +0000 |
commit | 84ace43c70d369c34fd8b6e4eb0c242eef859b76 (patch) | |
tree | 66999cb57c79e97c56d7d27845b52b2b9e936aae /imap4d | |
parent | e509ce1f1001802e60ce2bbc3e05fe0381829e2a (diff) | |
download | mailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.gz mailutils-84ace43c70d369c34fd8b6e4eb0c242eef859b76.tar.bz2 |
Revised use of const modifiers
Diffstat (limited to 'imap4d')
-rw-r--r-- | imap4d/auth_gsasl.c | 9 | ||||
-rw-r--r-- | imap4d/imap4d.c | 3 | ||||
-rw-r--r-- | imap4d/util.c | 4 |
3 files changed, 6 insertions, 10 deletions
diff --git a/imap4d/auth_gsasl.c b/imap4d/auth_gsasl.c index f9b645974..61fe116ab 100644 --- a/imap4d/auth_gsasl.c +++ b/imap4d/auth_gsasl.c @@ -39,7 +39,7 @@ create_gsasl_stream (stream_t *newstr, stream_t transport, int flags) if ((rc = stream_open (*newstr)) != 0) { - char *p; + const char *p; if (stream_strerror (*newstr, &p)) p = mu_strerror (rc); syslog (LOG_ERR, _("cannot open SASL input stream: %s"), p); @@ -148,7 +148,6 @@ auth_gsasl_capa_init (int disable) { int rc; char *listmech, *name, *s; - size_t size; rc = gsasl_server_mechlist (ctx, &listmech); if (rc != GSASL_OK) @@ -283,9 +282,3 @@ auth_gsasl_init () auth_gsasl_capa_init (0); } -wd() -{ - int _st=0; - while (_st==0) - _st=_st; -} diff --git a/imap4d/imap4d.c b/imap4d/imap4d.c index 6d8c74176..eefae4eaa 100644 --- a/imap4d/imap4d.c +++ b/imap4d/imap4d.c @@ -16,6 +16,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "imap4d.h" +#ifdef WITH_GSASL +# include <mailutils/gsasl.h> +#endif mailbox_t mbox; char *homedir; diff --git a/imap4d/util.c b/imap4d/util.c index 1d47c621f..a9da386d8 100644 --- a/imap4d/util.c +++ b/imap4d/util.c @@ -471,7 +471,7 @@ imap4d_readline (void) } else if (rc) { - char *p; + const char *p; if (stream_strerror (istream, &p)) p = strerror (errno); @@ -1141,7 +1141,7 @@ imap4d_init_tls_server () if (stream_open (stream)) { - char *p; + const char *p; stream_strerror (stream, &p); syslog (LOG_ERR, _("cannot open TLS stream: %s"), p); return 0; |