From 5759bd36aac6e2b2ceecaf476357188eaab583a3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 24 Dec 2018 11:12:53 +0200 Subject: [PATCH] WPS: Fix wps_validate_credential() argument type Newer gcc complained about the mismatching len[] argument type. Silence that by using the correct type. Signed-off-by: Jouni Malinen --- src/wps/wps_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wps/wps_validate.c b/src/wps/wps_validate.c index 267b565e4..5c12bce25 100644 --- a/src/wps/wps_validate.c +++ b/src/wps/wps_validate.c @@ -1057,7 +1057,7 @@ static int wps_validate_cred(const u8 *cred, size_t len) } -static int wps_validate_credential(const u8 *cred[], size_t len[], size_t num, +static int wps_validate_credential(const u8 *cred[], u16 len[], size_t num, int mandatory) { size_t i;