commit 2170b918345d833ac95d2551bea7065d5b4d1a36
parent 13253a4aedc91a36fdb424dc27dd951a76418551
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Tue, 10 Feb 2026 09:13:19 +0100
ft: Fix build issue with missing alloca.h include
CC src/ft.o
src/ft.c: In function ‘ft_prepare_handshake’:
src/ft.c:846:16: error: implicit declaration of function ‘alloca’; did you mean ‘calloc’? [-Wimplicit-function-declaration]
846 | rsne = alloca(256);
| ^~~~~~
| calloc
src/ft.c:846:14: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
846 | rsne = alloca(256);
| ^
src/ft.c:887:13: error: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
887 | fte = alloca(256);
| ^
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/ft.c b/src/ft.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#include <alloca.h>
#include <ell/ell.h>
#include "src/ie.h"