]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(auth): correct sign-compare warning
authorNicolas Toromanoff <nicolas.toromanoff@st.com>
Wed, 23 Dec 2020 15:01:25 +0000 (16:01 +0100)
committerLionel Debieve <lionel.debieve@foss.st.com>
Mon, 14 Nov 2022 10:25:01 +0000 (11:25 +0100)
commited38366f1dfeb0b0789fd69b400728598ae3c64e
treed16c75faea3a1770743c65654623a9f44e9e0fdf
parent40f9f644e8af34e745dbaec73d7128c0a4902e54
fix(auth): correct sign-compare warning

Correct the warning due to comparison between signed and
unsigned variable.

drivers/auth/mbedtls/mbedtls_x509_parser.c: In function 'get_ext':
drivers/auth/mbedtls/mbedtls_x509_parser.c:120:30:
error: comparison of integer expressions of different
signedness: 'int' and 'size_t' {aka 'unsigned int'}
[-Werror=sign-compare]
120 | if ((oid_len == strlen(oid_str)) && !strcmp(oid, oid_str)) {
    |              ^~

Change-Id: Ic12527f5f92a34e925bee3047c168eacf5e99d8a
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
drivers/auth/mbedtls/mbedtls_x509_parser.c