(MU_ERR_BUFSPACE): New error code
Showing
2 changed files
with
5 additions
and
2 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -95,6 +95,8 @@ extern "C" { | ... | @@ -95,6 +95,8 @@ extern "C" { |
95 | /* Parse error */ | 95 | /* Parse error */ |
96 | #define MU_ERR_NOENT (MU_ERR_BASE + 39) | 96 | #define MU_ERR_NOENT (MU_ERR_BASE + 39) |
97 | /* Requested item not found */ | 97 | /* Requested item not found */ |
98 | #define MU_ERR_BUFSPACE (MU_ERR_BASE + 40) | ||
99 | /* Not enough buffer space */ | ||
98 | 100 | ||
99 | const char *mu_errname __P((int e)); | 101 | const char *mu_errname __P((int e)); |
100 | const char *mu_strerror __P((int e)); | 102 | const char *mu_strerror __P((int e)); | ... | ... |
... | @@ -97,6 +97,7 @@ mu_errname (int e) | ... | @@ -97,6 +97,7 @@ mu_errname (int e) |
97 | EN(MU_ERR_CONN_CLOSED); | 97 | EN(MU_ERR_CONN_CLOSED); |
98 | EN(MU_ERR_PARSE); | 98 | EN(MU_ERR_PARSE); |
99 | EN(MU_ERR_NOENT); | 99 | EN(MU_ERR_NOENT); |
100 | EN(MU_ERR_BUFSPACE); | ||
100 | } | 101 | } |
101 | 102 | ||
102 | snprintf (buf, sizeof buf, _("Error %d"), e); | 103 | snprintf (buf, sizeof buf, _("Error %d"), e); |
... | @@ -107,7 +108,6 @@ const char * | ... | @@ -107,7 +108,6 @@ const char * |
107 | mu_strerror (int e) | 108 | mu_strerror (int e) |
108 | { | 109 | { |
109 | const char *msg = NULL; | 110 | const char *msg = NULL; |
110 | char *p; | ||
111 | 111 | ||
112 | switch (e) | 112 | switch (e) |
113 | { | 113 | { |
... | @@ -165,6 +165,7 @@ mu_strerror (int e) | ... | @@ -165,6 +165,7 @@ mu_strerror (int e) |
165 | ES(MU_ERR_CONN_CLOSED, _("Connection closed by remote host")); | 165 | ES(MU_ERR_CONN_CLOSED, _("Connection closed by remote host")); |
166 | ES(MU_ERR_PARSE, _("Parse error")); | 166 | ES(MU_ERR_PARSE, _("Parse error")); |
167 | ES(MU_ERR_NOENT, _("Requested item not found")); | 167 | ES(MU_ERR_NOENT, _("Requested item not found")); |
168 | ES(MU_ERR_BUFSPACE, _("Not enough buffer space")); | ||
168 | } | 169 | } |
169 | 170 | ||
170 | return msg ? msg : strerror (e); | 171 | return msg ? msg : strerror (e); | ... | ... |
-
Please register or sign in to post a comment