summaryrefslogtreecommitdiff
path: root/comsat/comsat.c
diff options
context:
space:
mode:
authorSam Roberts <sroberts@uniserve.com>2002-02-26 04:40:20 +0000
committerSam Roberts <sroberts@uniserve.com>2002-02-26 04:40:20 +0000
commitd55106d93b386f3d7bb1870875d8fc8227ee5a07 (patch)
tree08ae2959d051e30b028be6f572a413d4aef1b0cc /comsat/comsat.c
parentc003ad7d755d3a4212148bf509d4b6325bd699f1 (diff)
downloadmailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.gz
mailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.bz2
Replaced strerror() with mu_errstring().
Diffstat (limited to 'comsat/comsat.c')
-rw-r--r--comsat/comsat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/comsat/comsat.c b/comsat/comsat.c
index f0a474ab2..e6cdcc5e7 100644
--- a/comsat/comsat.c
+++ b/comsat/comsat.c
@@ -435,21 +435,21 @@ notify_user (const char *user, const char *device, const char *path, off_t offse
|| (status = mailbox_open (mbox, MU_STREAM_READ)) != 0)
{
syslog (LOG_ERR, "can't open mailbox %s: %s",
- path, strerror (status));
+ path, mu_errstring (status));
return;
}
if ((status = mailbox_get_stream (mbox, &stream)))
{
syslog (LOG_ERR, "can't get stream for mailbox %s: %s",
- path, strerror (status));
+ path, mu_errstring (status));
return;
}
if ((status = stream_size (stream, (off_t *) &size)))
{
syslog (LOG_ERR, "can't get stream size (mailbox %s): %s",
- path, strerror (status));
+ path, mu_errstring (status));
return;
}
@@ -462,18 +462,18 @@ notify_user (const char *user, const char *device, const char *path, off_t offse
stream_read (stream, blurb, size, offset, &n);
blurb[size] = 0;
- if (mailbox_create (&tmp, "/dev/null") != 0
- || mailbox_open (tmp, MU_STREAM_READ) != 0)
+ if ((status = mailbox_create (&tmp, "/dev/null")) != 0
+ || (status = mailbox_open (tmp, MU_STREAM_READ)) != 0)
{
syslog (LOG_ERR, "can't create temporary mailbox: %s",
- strerror (status));
+ mu_errstring (status));
return;
}
if ((status = memory_stream_create (&stream, 0, 0)))
{
syslog (LOG_ERR, "can't create temporary stream: %s",
- strerror (status));
+ mu_errstring (status));
return;
}

Return to:

Send suggestions and report system problems to the System administrator.