aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-12-10 21:29:55 +0100
committerMattias Andrée <maandree@kth.se>2021-12-10 21:29:55 +0100
commit2aec72784b4aa9e9b62ebed77cd56306de27da40 (patch)
tree7850be0f08efa678ac89bd30706b345470afea21
parentFix warnings (diff)
downloadliberror-libc-2aec72784b4aa9e9b62ebed77cd56306de27da40.tar.gz
liberror-libc-2aec72784b4aa9e9b62ebed77cd56306de27da40.tar.bz2
liberror-libc-2aec72784b4aa9e9b62ebed77cd56306de27da40.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--internal.h1
-rw-r--r--llabs.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/internal.h b/internal.h
index 190de0e..9c40020 100644
--- a/internal.h
+++ b/internal.h
@@ -8,6 +8,7 @@
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
+#include <limits.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
diff --git a/llabs.c b/llabs.c
index 539a0c4..cdc75f6 100644
--- a/llabs.c
+++ b/llabs.c
@@ -21,7 +21,7 @@ liberror_llabs(long long int i)
if (i != LLONG_MIN)
return llabs(i);
liberror_save_backtrace(NULL);
- liberror_llabs(i);
+ liberror_llabs_failed(i);
return i;
#endif
}