summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-11-12 12:39:08 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-11-12 12:39:08 +0000
commit40f7336964a293291b0ed2082cd7ab7a78e093fc (patch)
tree079952be821d7b70676051cb7486e4253637a010
parentad08b9e51eed07ad326f86513e0787b46652992d (diff)
downloadmailutils-40f7336964a293291b0ed2082cd7ab7a78e093fc.tar.gz
mailutils-40f7336964a293291b0ed2082cd7ab7a78e093fc.tar.bz2
Use mu_error for diagnostics where possible.
-rw-r--r--comsat/comsat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/comsat/comsat.c b/comsat/comsat.c
index 43bb5e91f..df721fe66 100644
--- a/comsat/comsat.c
+++ b/comsat/comsat.c
@@ -158,7 +158,7 @@ main (int argc, char **argv)
if (test_mode)
{
- char *user, *url, *qid;
+ char *user;
comsat_init ();
if (config_file)
@@ -471,7 +471,7 @@ notify_user (const char *user, const char *device, const char *path,
change_user (user);
if ((fp = fopen (device, "w")) == NULL)
{
- syslog (LOG_ERR, _("Cannot open device %s: %m"), device);
+ mu_error (_("Cannot open device %s: %m"), device);
exit (0);
}
@@ -487,7 +487,7 @@ notify_user (const char *user, const char *device, const char *path,
if ((status = mu_mailbox_create (&mbox, path)) != 0
|| (status = mu_mailbox_open (mbox, MU_STREAM_READ|MU_STREAM_QACCESS)) != 0)
{
- syslog (LOG_ERR, _("Cannot open mailbox %s: %s"),
+ mu_error (_("Cannot open mailbox %s: %s"),
path, mu_strerror (status));
return;
}
@@ -495,8 +495,8 @@ notify_user (const char *user, const char *device, const char *path,
status = mu_mailbox_quick_get_message (mbox, qid, &msg);
if (status)
{
- syslog (LOG_ERR, _("Cannot get message (mailbox %s, qid %s): %s"),
- path, qid, mu_strerror (status));
+ mu_error (_("Cannot get message (mailbox %s, qid %s): %s"),
+ path, qid, mu_strerror (status));
return; /* FIXME: Notify the user, anyway */
}

Return to:

Send suggestions and report system problems to the System administrator.