From 4aa01d38f53e3403ee8c8fe4a8d3f6e28bebf903 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 11 Oct 2014 18:03:38 +0300 Subject: [PATCH] IAPP: Avoid warnings on unused write The hlen and len variables are identical here, but only the hlen was used in the end. Change this to use the len variable to avoid unnecessary static analyzer warnings about unused writes. Signed-off-by: Jouni Malinen --- src/ap/iapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/iapp.c b/src/ap/iapp.c index 9b2900f23..99aa04dc3 100644 --- a/src/ap/iapp.c +++ b/src/ap/iapp.c @@ -361,7 +361,7 @@ static void iapp_receive_udp(int sock, void *eloop_ctx, void *sock_ctx) switch (hdr->command) { case IAPP_CMD_ADD_notify: - iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr)); + iapp_process_add_notify(iapp, &from, hdr, len - sizeof(*hdr)); break; case IAPP_CMD_MOVE_notify: /* TODO: MOVE is using TCP; so move this to TCP handler once it