diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-08-10 19:36:46 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-08-10 19:36:46 +0300 |
commit | bf200fbd238cb5da42bb7fc8ad2cd433c7135fe3 (patch) | |
tree | 504ed1f2a89844ae4268a5ea63820361cd350072 | |
parent | 0ac500aef722ac5674cfd053889e1c0101c88f97 (diff) | |
download | mailutils-bf200fbd238cb5da42bb7fc8ad2cd433c7135fe3.tar.gz mailutils-bf200fbd238cb5da42bb7fc8ad2cd433c7135fe3.tar.bz2 |
Use mu_temp_stream_create instead of mu_temp_file_stream_create everywhere
-rw-r--r-- | examples/mta.c | 4 | ||||
-rw-r--r-- | libproto/imap/mbox.c | 2 | ||||
-rw-r--r-- | libproto/mbox/mbox.c | 2 | ||||
-rw-r--r-- | libproto/pop/mbox.c | 2 | ||||
-rw-r--r-- | mail/send.c | 2 | ||||
-rw-r--r-- | mda/lib/deliver.c | 4 | ||||
-rw-r--r-- | mda/lmtpd/lmtpd.c | 4 | ||||
-rw-r--r-- | mh/burst.c | 2 | ||||
-rw-r--r-- | mh/prompter.c | 4 |
9 files changed, 13 insertions, 13 deletions
diff --git a/examples/mta.c b/examples/mta.c index 588447871..223a770a3 100644 --- a/examples/mta.c +++ b/examples/mta.c @@ -206,10 +206,10 @@ make_tmp (mu_stream_t in) size_t size = 0, n; mu_message_t mesg; - rc = mu_temp_file_stream_create (&out, NULL, 0); + rc = mu_temp_stream_create (&out, 0); if (rc) { - mu_error (_("unable to open temporary file: %s"), mu_strerror (rc)); + mu_error (_("unable to open temporary stream: %s"), mu_strerror (rc)); exit (EX_UNAVAILABLE); } diff --git a/libproto/imap/mbox.c b/libproto/imap/mbox.c index a8e6aa5ca..8845ef65a 100644 --- a/libproto/imap/mbox.c +++ b/libproto/imap/mbox.c @@ -165,7 +165,7 @@ __imap_msg_get_stream (struct _mu_imap_message *imsg, size_t msgno, (_("caching message %lu"), (unsigned long) msgno)); if (!imbx->cache) { - rc = mu_temp_file_stream_create (&imbx->cache, NULL, 0); + rc = mu_temp_stream_create (&imbx->cache, 0); if (rc) /* FIXME: Try to recover first */ return rc; diff --git a/libproto/mbox/mbox.c b/libproto/mbox/mbox.c index 7e0a2c69e..d5cc21032 100644 --- a/libproto/mbox/mbox.c +++ b/libproto/mbox/mbox.c @@ -1426,7 +1426,7 @@ mbox_expunge0 (mu_mailbox_t mailbox, int remove_deleted) (status = mu_locker_lock (mailbox->locker)) != 0) return status; - status = mu_temp_file_stream_create (&tempstr, NULL, 0); + status = mu_temp_stream_create (&tempstr, 0); if (status == 0) { sigset_t signalset; diff --git a/libproto/pop/mbox.c b/libproto/pop/mbox.c index 54beb7cb1..9fd48e314 100644 --- a/libproto/pop/mbox.c +++ b/libproto/pop/mbox.c @@ -453,7 +453,7 @@ _pop_message_get_stream (struct _pop3_message *mpm, mu_stream_t *pstr) if (!mpd->cache) { - status = mu_temp_file_stream_create (&mpd->cache, NULL, 0); + status = mu_temp_stream_create (&mpd->cache, 0); if (status) /* FIXME: Try to recover first */ break; diff --git a/mail/send.c b/mail/send.c index 7e9bf552e..dd46d62b6 100644 --- a/mail/send.c +++ b/mail/send.c @@ -1213,7 +1213,7 @@ mail_send0 (compose_env_t *env, int save_to) char *escape; /* Prepare environment */ - rc = mu_temp_file_stream_create (&env->compstr, NULL, 0); + rc = mu_temp_stream_create (&env->compstr, 0); if (rc) { mu_error (_("Cannot open temporary file: %s"), mu_strerror (rc)); diff --git a/mda/lib/deliver.c b/mda/lib/deliver.c index 1121155bb..c316fc914 100644 --- a/mda/lib/deliver.c +++ b/mda/lib/deliver.c @@ -78,10 +78,10 @@ make_tmp (const char *from) exit (EX_TEMPFAIL); } - rc = mu_temp_file_stream_create (&out, NULL, 0); + rc = mu_temp_stream_create (&out, 0); if (rc) { - mda_error (_("unable to open temporary file: %s"), mu_strerror (rc)); + mda_error (_("unable to open temporary stream: %s"), mu_strerror (rc)); exit (EX_TEMPFAIL); } diff --git a/mda/lmtpd/lmtpd.c b/mda/lmtpd/lmtpd.c index 6a2fca472..c643b4cca 100644 --- a/mda/lmtpd/lmtpd.c +++ b/mda/lmtpd/lmtpd.c @@ -563,10 +563,10 @@ cfun_data (mu_stream_t iostr, char *arg) return 1; } - rc = mu_temp_file_stream_create (&tempstr, NULL, 0); + rc = mu_temp_stream_create (&tempstr, 0); if (rc) { - mda_error (_("unable to open temporary file: %s"), mu_strerror (rc)); + mda_error (_("unable to open temporary stream: %s"), mu_strerror (rc)); mu_stream_destroy (&flt); return 1; } diff --git a/mh/burst.c b/mh/burst.c index 6170016fd..74cb4af79 100644 --- a/mh/burst.c +++ b/mh/burst.c @@ -331,7 +331,7 @@ flush_stream (struct burst_stream *bs, char *buf, size_t size) return; if (!bs->stream) { - if ((rc = mu_temp_file_stream_create (&bs->stream, NULL, 0))) + if ((rc = mu_temp_stream_create (&bs->stream, 0))) { mu_error (_("Cannot open temporary file: %s"), mu_strerror (rc)); diff --git a/mh/prompter.c b/mh/prompter.c index 8d657911e..1ebc94217 100644 --- a/mh/prompter.c +++ b/mh/prompter.c @@ -129,9 +129,9 @@ main (int argc, char **argv) return 1; } - if ((rc = mu_temp_file_stream_create (&tmp, NULL, 0))) + if ((rc = mu_temp_stream_create (&tmp, 0))) { - mu_error (_("Cannot open temporary file: %s"), + mu_error (_("Cannot open temporary stream: %s"), mu_strerror (rc)); return 1; } |