eiwd

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

commit b47ada02bfd78aeefc3e12060a3f8252c907d9d3
parent d22b174a7318401a3845ee6954d96b4376d0a4b9
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Wed, 26 Jan 2022 12:20:32 -0600

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]

Diffstat:
Msrc/eap-ttls.c | 2+-
Msrc/erp.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/eap-ttls.c b/src/eap-ttls.c @@ -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) { diff --git a/src/erp.c b/src/erp.c @@ -114,8 +114,8 @@ static bool erp_tlv_iter_next(struct erp_tlv_iter *iter) { const unsigned char *tlv = iter->tlv + iter->pos; const unsigned char *end = iter->tlv + iter->max; - unsigned int tag; - unsigned int len; + uint8_t tag; + uint8_t len; if (end - tlv < 2) return false;