commit fc2965649c49417cb02b40a81d57bf07bf35c4c6
parent fa25de4ad1cdd4c1f2f203fd9fe5d162d4e69061
Author: Rudi Heitbaum <rudi@heitbaum.com>
Date: Wed, 20 Nov 2024 12:41:04 +0000
anqputil: fix -std=c23 build failure
gcc-15 switched to -std=c23 by default:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
As a result `iwd` fails the build as:
../src/anqputil.c:134:24: error: incompatible types when returning type '_Bool' but 'char **' was expected
134 | return false;
| ^~~~~
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/anqputil.c b/src/anqputil.c
@@ -131,7 +131,7 @@ char **anqp_parse_nai_realms(const unsigned char *anqp, unsigned int len)
uint16_t count;
if (len < 2)
- return false;
+ return NULL;
count = l_get_le16(anqp);