summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-04 09:32:26 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-03-04 09:32:26 +0200
commit776056e2e3e7529fc64ca30bf055646fd6f11a2a (patch)
tree29f165db7b252cde92531b2564c1ca52018cd069
parent42d2ff71265b62e778b89a035efb2be795ce8956 (diff)
downloadmailutils-776056e2e3e7529fc64ca30bf055646fd6f11a2a.tar.gz
mailutils-776056e2e3e7529fc64ca30bf055646fd6f11a2a.tar.bz2
Bugfixes
* libmailutils/server/acl.c (_run_entry): Fix log output. * mu/shell.c: Fix compilation without readline.
-rw-r--r--libmailutils/server/acl.c10
-rw-r--r--mu/shell.c3
2 files changed, 5 insertions, 8 deletions
diff --git a/libmailutils/server/acl.c b/libmailutils/server/acl.c
index b7f508af3..0b7a507e0 100644
--- a/libmailutils/server/acl.c
+++ b/libmailutils/server/acl.c
@@ -673,17 +673,13 @@ _run_entry (void *item, void *data)
char *s;
if (ent->arg && expand_arg (ent->arg, rp, &s) == 0)
{
- if (mu_debug_level_p (MU_DEBCAT_ACL, MU_DEBUG_TRACE9))
- mu_debug_log_end ("%s", s);
+ mu_diag_output (MU_DIAG_INFO, "%s", s);
free (s);
}
else
{
- if (mu_debug_level_p (MU_DEBCAT_ACL, MU_DEBUG_TRACE9))
- {
- debug_sockaddr (rp->sa, rp->salen);
- mu_debug_log_nl ();
- }
+ debug_sockaddr (rp->sa, rp->salen);
+ mu_debug_log_nl ();
}
}
break;
diff --git a/mu/shell.c b/mu/shell.c
index 1112dc7c4..9baceb1ab 100644
--- a/mu/shell.c
+++ b/mu/shell.c
@@ -412,13 +412,14 @@ shell_history (int argc, char **argv)
#else
# define finish_readline()
-# define mutool_initialize_readline (const char *name)
+# define mutool_initialize_readline(name)
char *
readline (char *prompt)
{
static size_t size = 0;
static char *buf = NULL;
+ size_t n;
if (prompt)
{

Return to:

Send suggestions and report system problems to the System administrator.