commit d4b93220c5a7f7c745ba5b3705638763bf909f8f
parent b47ada02bfd78aeefc3e12060a3f8252c907d9d3
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 26 Jan 2022 10:19:42 -0800
sae: fix missing reallocarray definition
Building on GCC 8 resulted in this compiler error.
src/sae.c:107:25: error: implicit declaration of function 'reallocarray';
did you mean 'realloc'? [-Werror=implicit-function-declaration]
sm->rejected_groups = reallocarray(NULL, 2, sizeof(uint16_t));
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sae.c b/src/sae.c
@@ -24,6 +24,8 @@
#include <config.h>
#endif
+#include <stdlib.h>
+
#include <ell/ell.h>
#include "src/missing.h"