diff options
Diffstat (limited to 'src/common/errors.c')
-rw-r--r-- | src/common/errors.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/errors.c b/src/common/errors.c index 11aff95..73f0ce7 100644 --- a/src/common/errors.c +++ b/src/common/errors.c @@ -14,11 +14,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <config.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "common/errors.h" +#include "common/errcode.h" /*! * \brief Looks up the given id in the lookup table. @@ -65,7 +67,7 @@ int _map_errno(int fallback_value, int arg0, ...) if (c == errno) { /* Return negative value of the code. */ va_end(ap); - return -abs(c); + return err2code(abs(c)); } } va_end(ap); |