aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-07 15:26:59 +0200
committerMattias Andrée <maandree@kth.se>2022-07-07 15:28:31 +0200
commit46cf9187cb1153bf860513041643da04a45d1bf1 (patch)
tree1467df94c6cf4e480293e7e53c1b68cfbdcf01e4
parentm (diff)
downloadlibsha1-46cf9187cb1153bf860513041643da04a45d1bf1.tar.gz
libsha1-46cf9187cb1153bf860513041643da04a45d1bf1.tar.bz2
libsha1-46cf9187cb1153bf860513041643da04a45d1bf1.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--common.h2
-rw-r--r--sum_fd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index 2c8250c..6d9d067 100644
--- a/common.h
+++ b/common.h
@@ -5,8 +5,8 @@
#include <alloca.h>
#include <errno.h>
#include <inttypes.h>
-#include <stdlib.h>
#include <stddef.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/sum_fd.c b/sum_fd.c
index 73a5a5a..c4f41d0 100644
--- a/sum_fd.c
+++ b/sum_fd.c
@@ -52,7 +52,7 @@ libsha1_sum_fd(int fd, enum libsha1_algorithm algorithm, void *restrict hashsum)
if (errno == EINTR)
continue;
#if ALLOCA_LIMIT <= 0
- free(chunk);
+ free(chunk);
#endif
return -1;
}