eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6116554d637bca65d131ade76c1362b28eacb37e
parent de3c8ab3fb6823a83388f9e5501d2dad5bdb2632
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Tue, 10 Feb 2026 16:53:01 +0100

unit: Fix build issue with missing alloca.h include

  CC       unit/test-sae.o
unit/test-sae.c: In function ‘test_clogging’:
unit/test-sae.c:253:44: error: implicit declaration of function ‘alloca’; did you mean ‘calloc’? [-Wimplicit-function-declaration]
  253 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
      |                                            calloc
unit/test-sae.c:253:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
unit/test-sae.c: In function ‘test_early_confirm’:
unit/test-sae.c:282:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  282 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c: In function ‘test_malformed_commit’:
unit/test-sae.c:323:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  323 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c: In function ‘test_malformed_confirm’:
unit/test-sae.c:341:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  341 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c:352:15: error: assignment to ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  352 |         frame = alloca(sizeof(struct authenticate_frame) + sizeof(aa_confirm));
      |               ^
unit/test-sae.c: In function ‘test_bad_group’:
unit/test-sae.c:378:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  378 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c: In function ‘test_bad_confirm’:
unit/test-sae.c:409:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  409 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c: In function ‘test_confirm_after_accept’:
unit/test-sae.c:482:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  482 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c:484:41: error: initialization of ‘struct associate_frame *’ from ‘int’ makes pointer from integer without a cast -Wint-conversion]
  484 |         struct associate_frame *assoc = alloca(sizeof(struct associate_frame));
      |                                         ^~~~~~
unit/test-sae.c: In function ‘test_end_to_end’:
unit/test-sae.c:566:44: error: initialization of ‘struct authenticate_frame *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  566 |         struct authenticate_frame *frame = alloca(
      |                                            ^~~~~~
unit/test-sae.c:568:41: error: initialization of ‘struct associate_frame *’ from ‘int’ makes pointer from integer without a cast -Wint-conversion]
  568 |         struct associate_frame *assoc = alloca(sizeof(struct associate_frame));
      |                                         ^~~~~~

Diffstat:
Munit/test-sae.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/unit/test-sae.c b/unit/test-sae.c @@ -25,6 +25,7 @@ #endif #include <string.h> +#include <alloca.h> #include <assert.h> #include <ell/ell.h>