summaryrefslogtreecommitdiff
path: root/from
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 /from
parentc003ad7d755d3a4212148bf509d4b6325bd699f1 (diff)
downloadmailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.gz
mailutils-d55106d93b386f3d7bb1870875d8fc8227ee5a07.tar.bz2
Replaced strerror() with mu_errstring().
Diffstat (limited to 'from')
-rw-r--r--from/from.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/from/from.c b/from/from.c
index 60e2ac3c5..3b53e2188 100644
--- a/from/from.c
+++ b/from/from.c
@@ -33,8 +33,9 @@
#include <string.h>
#include <unistd.h>
-#include <mailutils/mailbox.h>
#include <mailutils/address.h>
+#include <mailutils/errno.h>
+#include <mailutils/mailbox.h>
#include <mailutils/registrar.h>
int
@@ -66,7 +67,7 @@ main(int argc, char **argv)
if ((status = mailbox_create_default (&mbox, mailbox_name)) != 0)
{
- fprintf (stderr, "could not create/open: %s\n", strerror (status));
+ fprintf (stderr, "could not create/open: %s\n", mu_errstring (status));
exit (1);
}
@@ -79,7 +80,7 @@ main(int argc, char **argv)
if ((status = mailbox_open (mbox, MU_STREAM_READ)) != 0)
{
- fprintf (stderr, "could not create/open: %s\n", strerror (status));
+ fprintf (stderr, "could not create/open: %s\n", mu_errstring (status));
exit (1);
}
@@ -92,7 +93,7 @@ main(int argc, char **argv)
if ((status = mailbox_get_message (mbox, i, &msg)) != 0
|| (status = message_get_header (msg, &hdr)) != 0)
{
- fprintf (stderr, "msg %d : %s\n", i, strerror(status));
+ fprintf (stderr, "msg %d : %s\n", i, mu_errstring(status));
exit(2);
}

Return to:

Send suggestions and report system problems to the System administrator.