upstream: we are still aiming for pre-C99 ...
OpenBSD-Commit-ID: a240fc9cbe60bc4e6c3d24d022eb4ab01fe1cb38
This commit is contained in:
parent
2ad7b7e464
commit
d7d753e297
|
@ -454,7 +454,7 @@ check_sk_extensions(fido_dev_t *dev, const char *ext, int *ret)
|
|||
{
|
||||
fido_cbor_info_t *info;
|
||||
char * const *ptr;
|
||||
size_t len;
|
||||
size_t len, i;
|
||||
int r;
|
||||
|
||||
*ret = 0;
|
||||
|
@ -474,7 +474,7 @@ check_sk_extensions(fido_dev_t *dev, const char *ext, int *ret)
|
|||
}
|
||||
ptr = fido_cbor_info_extensions_ptr(info);
|
||||
len = fido_cbor_info_extensions_len(info);
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
for (i = 0; i < len; i++) {
|
||||
if (!strcmp(ptr[i], ext)) {
|
||||
*ret = 1;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue