diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-06-28 12:59:40 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-06-28 12:59:40 +0200 |
commit | 124965832295a277b9ca6ae9fac4f45a74a36b2a (patch) | |
tree | f299e2335863f74e0be0707f84b85211baaf2d03 /src/common/errors.c | |
parent | 3d2d198c71a6b844b60fa9ef68801b66bba93361 (diff) | |
download | knot-upstream/1.3.0_rc3.tar.gz |
New upstream version 1.3.0~rc3upstream/1.3.0_rc3
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); |