Using mu_errstring() instead of strerror().
Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -40,6 +40,7 @@ | ... | @@ -40,6 +40,7 @@ |
40 | 40 | ||
41 | #include <md5-rsa.h> | 41 | #include <md5-rsa.h> |
42 | 42 | ||
43 | #include <mailutils/errno.h> | ||
43 | #include <mailutils/stream.h> | 44 | #include <mailutils/stream.h> |
44 | #include <mailutils/body.h> | 45 | #include <mailutils/body.h> |
45 | #include <mailutils/message.h> | 46 | #include <mailutils/message.h> |
... | @@ -253,7 +254,7 @@ do \ | ... | @@ -253,7 +254,7 @@ do \ |
253 | stream_close (mbox->stream); \ | 254 | stream_close (mbox->stream); \ |
254 | CLEAR_STATE (mpd); \ | 255 | CLEAR_STATE (mpd); \ |
255 | mpd->func = (void *)-1; \ | 256 | mpd->func = (void *)-1; \ |
256 | MAILBOX_DEBUG1(mbox, MU_DEBUG_PROT, "CHECK_ERROR_CLOSE: %s\n", strerror (status));\ | 257 | MAILBOX_DEBUG1(mbox, MU_DEBUG_PROT, "CHECK_ERROR_CLOSE: %s\n", mu_errstring (status));\ |
257 | return status; \ | 258 | return status; \ |
258 | } \ | 259 | } \ |
259 | } \ | 260 | } \ |
... | @@ -267,7 +268,7 @@ do \ | ... | @@ -267,7 +268,7 @@ do \ |
267 | { \ | 268 | { \ |
268 | CLEAR_STATE (mpd); \ | 269 | CLEAR_STATE (mpd); \ |
269 | mpd->func = (void*)-1; \ | 270 | mpd->func = (void*)-1; \ |
270 | MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_ERROR: %s\n", strerror (status));\ | 271 | MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_ERROR: %s\n", mu_errstring (status));\ |
271 | return status; \ | 272 | return status; \ |
272 | } \ | 273 | } \ |
273 | } \ | 274 | } \ |
... | @@ -283,7 +284,7 @@ do \ | ... | @@ -283,7 +284,7 @@ do \ |
283 | { \ | 284 | { \ |
284 | CLEAR_STATE (mpd); \ | 285 | CLEAR_STATE (mpd); \ |
285 | mpd->func = (void *)-1; \ | 286 | mpd->func = (void *)-1; \ |
286 | MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_EAGAIN: %s\n", strerror (status));\ | 287 | MAILBOX_DEBUG1(mpd->mbox, MU_DEBUG_PROT, "CHECK_EAGAIN: %s\n", mu_errstring (status));\ |
287 | } \ | 288 | } \ |
288 | return status; \ | 289 | return status; \ |
289 | } \ | 290 | } \ | ... | ... |
-
Please register or sign in to post a comment