]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
gnutls.c:943:21: warning: comparison of integer expressions of different signedness...
authorTom Carroll <incentivedesign@gmail.com>
Mon, 17 May 2021 05:56:57 +0000 (22:56 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 17 May 2021 10:30:24 +0000 (11:30 +0100)
commitdf6d08b56b66ca2837bddc7dd8bff52171f528df
treeabed20f0342451ff89eefca26b6d36ce27b51ff2
parent2c1cd7768fc2de038d0a071b28fdbeb104729bc8
gnutls.c:943:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]

The gci->nr_certs field is an unsigned int. Use that as the loop variable
for freeing them too. And we don't actually need the if (gci->certs)
condition here either because ->nr_certs won't be non-zero in that case
anyway.

Signed-off-by: Tom Carroll <incentivedesign@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gnutls.c