mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
treewide: Fix compiler warnings
src/erp.c:134:10: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] src/eap-ttls.c:378:10: error: comparison of integer expressions of different signedness: 'uint32_t' {aka 'unsigned int'} and 'int' [-Werror=sign-compare]
This commit is contained in:
parent
d22b174a73
commit
b47ada02bf
@ -375,7 +375,7 @@ static bool avp_iter_next(struct avp_iter *iter)
|
||||
|
||||
len -= TTLS_AVP_HEADER_LEN;
|
||||
|
||||
if (len > end - start)
|
||||
if ((ptrdiff_t) len > end - start)
|
||||
return false;
|
||||
|
||||
if (flags & TTLS_AVP_FLAG_V) {
|
||||
|
Loading…
Reference in New Issue
Block a user