3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2026-02-11 06:58:04 +01:00

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);
      |             ^
This commit is contained in:
Marcel Holtmann 2026-02-10 09:13:19 +01:00
parent 13253a4aed
commit 2170b91834

View File

@ -24,6 +24,7 @@
#include <config.h>
#endif
#include <alloca.h>
#include <ell/ell.h>
#include "src/ie.h"