diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-12-16 11:39:30 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-12-16 11:39:30 +0200 |
commit | a837453677a2888155aa565666acc956cdd3f896 (patch) | |
tree | 7f831519e32b80bda67430b55f779095a30de6ea /mu | |
parent | fa42589cef090379bda4ea4e0838474520f9f4f6 (diff) | |
download | mailutils-a837453677a2888155aa565666acc956cdd3f896.tar.gz mailutils-a837453677a2888155aa565666acc956cdd3f896.tar.bz2 |
Minor cleanup in imap client.
* include/mailutils/imap.h (mu_imap_session_state): Remove.
(mu_imap_state): Rename to mu_imap_session_state.
(mu_imap_state_str): Rename to mu_imap_session_state_str.
* libproto/imap/create.c (mu_imap_session_state)
(mu_imap_iserror,mu_imap_clearerr): Move to state.c
* mu/imap.c: Update accordingly.
Diffstat (limited to 'mu')
-rw-r--r-- | mu/imap.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -70,7 +70,7 @@ current_imap_state () if (imap == NULL) state = MU_IMAP_SESSION_INIT; else - mu_imap_state (imap, &state); + state = mu_imap_session_state (imap); return state; } @@ -152,7 +152,8 @@ imap_prompt_env () mutool_prompt_env[11] = PACKAGE_VERSION; mutool_prompt_env[12] = "status"; - if (mu_imap_state_str (state, (const char **) &mutool_prompt_env[13])) + if (mu_imap_session_state_str (state, + (const char **) &mutool_prompt_env[13])) mutool_prompt_env[12] = NULL; mutool_prompt_env[14] = NULL; |