summaryrefslogtreecommitdiff
path: root/readmsg
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 /readmsg
parentc003ad7d755d3a4212148bf509d4b6325bd699f1 (diff)
downloadmailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.gz
mailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.bz2
Replaced strerror() with mu_errstring().
Diffstat (limited to 'readmsg')
-rw-r--r--readmsg/readmsg.c6
-rw-r--r--readmsg/readmsg.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/readmsg/readmsg.c b/readmsg/readmsg.c
index 615f3f5de..cded0d3af 100644
--- a/readmsg/readmsg.c
+++ b/readmsg/readmsg.c
@@ -248,7 +248,7 @@ main (int argc, char **argv)
status = mailbox_create_default (&mbox, mailbox_name);
if (status != 0)
{
- fprintf (stderr, "could not create - %s\n", strerror(status));
+ fprintf (stderr, "could not create - %s\n", mu_errstring(status));
exit (2);
}
@@ -263,7 +263,7 @@ main (int argc, char **argv)
status = mailbox_open (mbox, MU_STREAM_READ);
if (status != 0)
{
- fprintf (stderr, "mailbox open - %s\n", strerror(status));
+ fprintf (stderr, "mailbox open - %s\n", mu_errstring(status));
exit (2);
}
@@ -282,7 +282,7 @@ main (int argc, char **argv)
status = mailbox_get_message (mbox, set[i], &msg);
if (status != 0)
{
- fprintf (stderr, "mailbox_get_message - %s\n", strerror (status));
+ fprintf (stderr, "mailbox_get_message - %s\n", mu_errstring (status));
exit (2);
}
diff --git a/readmsg/readmsg.h b/readmsg/readmsg.h
index 7a2929fbe..27c10636e 100644
--- a/readmsg/readmsg.h
+++ b/readmsg/readmsg.h
@@ -28,6 +28,7 @@
#include <errno.h>
#include <getopt.h>
+#include <mailutils/errno.h>
#include <mailutils/mailbox.h>
#include <mailutils/header.h>
#include <mailutils/mime.h>

Return to:

Send suggestions and report system problems to the System administrator.