Use mu_error for diagnostics where possible.
Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -158,7 +158,7 @@ main (int argc, char **argv) | ... | @@ -158,7 +158,7 @@ main (int argc, char **argv) |
158 | 158 | ||
159 | if (test_mode) | 159 | if (test_mode) |
160 | { | 160 | { |
161 | char *user, *url, *qid; | 161 | char *user; |
162 | 162 | ||
163 | comsat_init (); | 163 | comsat_init (); |
164 | if (config_file) | 164 | if (config_file) |
... | @@ -471,7 +471,7 @@ notify_user (const char *user, const char *device, const char *path, | ... | @@ -471,7 +471,7 @@ notify_user (const char *user, const char *device, const char *path, |
471 | change_user (user); | 471 | change_user (user); |
472 | if ((fp = fopen (device, "w")) == NULL) | 472 | if ((fp = fopen (device, "w")) == NULL) |
473 | { | 473 | { |
474 | syslog (LOG_ERR, _("Cannot open device %s: %m"), device); | 474 | mu_error (_("Cannot open device %s: %m"), device); |
475 | exit (0); | 475 | exit (0); |
476 | } | 476 | } |
477 | 477 | ||
... | @@ -487,7 +487,7 @@ notify_user (const char *user, const char *device, const char *path, | ... | @@ -487,7 +487,7 @@ notify_user (const char *user, const char *device, const char *path, |
487 | if ((status = mu_mailbox_create (&mbox, path)) != 0 | 487 | if ((status = mu_mailbox_create (&mbox, path)) != 0 |
488 | || (status = mu_mailbox_open (mbox, MU_STREAM_READ|MU_STREAM_QACCESS)) != 0) | 488 | || (status = mu_mailbox_open (mbox, MU_STREAM_READ|MU_STREAM_QACCESS)) != 0) |
489 | { | 489 | { |
490 | syslog (LOG_ERR, _("Cannot open mailbox %s: %s"), | 490 | mu_error (_("Cannot open mailbox %s: %s"), |
491 | path, mu_strerror (status)); | 491 | path, mu_strerror (status)); |
492 | return; | 492 | return; |
493 | } | 493 | } |
... | @@ -495,8 +495,8 @@ notify_user (const char *user, const char *device, const char *path, | ... | @@ -495,8 +495,8 @@ notify_user (const char *user, const char *device, const char *path, |
495 | status = mu_mailbox_quick_get_message (mbox, qid, &msg); | 495 | status = mu_mailbox_quick_get_message (mbox, qid, &msg); |
496 | if (status) | 496 | if (status) |
497 | { | 497 | { |
498 | syslog (LOG_ERR, _("Cannot get message (mailbox %s, qid %s): %s"), | 498 | mu_error (_("Cannot get message (mailbox %s, qid %s): %s"), |
499 | path, qid, mu_strerror (status)); | 499 | path, qid, mu_strerror (status)); |
500 | return; /* FIXME: Notify the user, anyway */ | 500 | return; /* FIXME: Notify the user, anyway */ |
501 | } | 501 | } |
502 | 502 | ... | ... |
-
Please register or sign in to post a comment