Commit bf8b7ff0 bf8b7ff08f0c13e99ff39b49ce7bb3d34ec9a97a by Sergey Poznyakoff

Minor fixes.

* libmailutils/mime/mimehdr.c (free_param_continuation): Change
return type to void.
* mu/shell.c: Include muaux.h
* libproto/imap/logout.c (mu_imap_logout): Logout is valid in any
state, except MU_IMAP_SESSION_INIT.
1 parent 5eb34056
......@@ -134,7 +134,7 @@ struct param_continuation
const char *param_cset;
};
static int
static void
free_param_continuation (struct param_continuation *p)
{
free (p->param_name);
......
......@@ -32,8 +32,7 @@ mu_imap_logout (mu_imap_t imap)
return EINVAL;
if (!imap->io)
return MU_ERR_NO_TRANSPORT;
if (!(imap->session_state == MU_IMAP_SESSION_AUTH ||
imap->session_state == MU_IMAP_SESSION_SELECTED))
if (imap->session_state == MU_IMAP_SESSION_INIT)
return MU_ERR_SEQ;
switch (imap->client_state)
......
......@@ -23,6 +23,7 @@
#include <mailutils/mailutils.h>
#include <mailutils/tls.h>
#include "mailutils/libargp.h"
#include "muaux.h"
#include "mu.h"
#include "xalloc.h"
......