path: root/libmailutils/url
diff options
authorSergey Poznyakoff <>2011-10-28 23:18:33 +0300
committerSergey Poznyakoff <>2011-10-29 18:41:21 +0300
commit5f796a9c31d4ab9c281af3a072ae4d150fd2a1fb (patch)
tree4743c983c1653a3b1cb132539b52d0390a3aff82 /libmailutils/url
parentfb994e0a85011d050eb6e3e166018a5625118c20 (diff)
Reorganize error codes.
* libmailutils/diag/errors (MU_ERR_TCP_NO_HOST) (MU_ERR_TCP_NO_PORT): Change wording. (MU_ERR_UNSAFE_PERMS): Remove error code. (MU_ERR_NO_HANDLER): Remove. All uses replaced by ENOSYS. (MU_ERR_OUT_NULL): Remove. MU_ERR_OUT_PTR_NULL is used instead. (MU_ERR_MBX_NULL): Remove. Use EINVAL instead. (MU_ERR_BAD_822_FORMAT): Rename to MU_ERR_INVALID_EMAIL. Change wording. (MU_ERR_REPLY): Change wording. * libmailutils/url/create.c: Remove misguiding comments * libmailutils/url/set-service.c: Likewise. * libmailutils/mailbox/mailbox.c (mu_mailbox_open): Return EACCES if trying to update quick-access mailboxes. (mu_mailbox_get_stream): Mark for deletion. * libmailutils/stream/fltstream.c (filter_read) (filter_write_internal): Return MU_ERR_BUFSPACE if requested more space than available in I/O buffers. * libproto/mbox/mbox.c (mbox_expunge_unlocked): Send MU_EVT_MAILBOX_CORRUPT event if the mailbox shrunk. * libproto/mbox/mboxscan.c (mbox_scan_internal): Return MU_ERR_NOENT if unable to locate message in quick-access mode.
Diffstat (limited to 'libmailutils/url')
2 files changed, 2 insertions, 2 deletions
diff --git a/libmailutils/url/create.c b/libmailutils/url/create.c
index d6b01be2c..b86fc41ea 100644
--- a/libmailutils/url/create.c
+++ b/libmailutils/url/create.c
@@ -476,7 +476,7 @@ _mu_url_create_internal (struct mu_url_ctx *ctx, mu_url_t hint)
/* FIXME: Another proto? */
struct servent *sp = getservbyname (url->portstr, "tcp");
if (!sp)
- return MU_ERR_TCP_NO_PORT; //FIXME: Error code?
+ return MU_ERR_TCP_NO_PORT;
url->port = ntohs (sp->s_port);
diff --git a/libmailutils/url/set-service.c b/libmailutils/url/set-service.c
index f570977ec..5f2fb043b 100644
--- a/libmailutils/url/set-service.c
+++ b/libmailutils/url/set-service.c
@@ -53,7 +53,7 @@ mu_url_set_service (mu_url_t url, const char *str)
/* FIXME: 2. Another proto? */
struct servent *sp = getservbyname (str, "tcp");
if (!sp)
- return MU_ERR_TCP_NO_PORT; /*FIXME: Error code?*/
+ return MU_ERR_TCP_NO_PORT;
port = ntohs (sp->s_port);
else if (n > USHRT_MAX)

Return to:

Send suggestions and report system problems to the System administrator.