From 5f796a9c31d4ab9c281af3a072ae4d150fd2a1fb Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 28 Oct 2011 23:18:33 +0300 Subject: 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. --- libmailutils/url/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmailutils/url/create.c') 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); } else -- cgit v1.2.1