upstream: rewrite c99-ism

OpenBSD-Commit-ID: d0c70cca29cfa7e6d9f7ec1d6d5dabea112499b3
This commit is contained in:
deraadt@openbsd.org 2019-11-15 05:26:56 +00:00 committed by Damien Miller
parent 03e06dd0e6
commit d165bb5396

View File

@ -218,7 +218,7 @@ find_device(const uint8_t *message, size_t message_len, const char *application,
{
fido_dev_info_t *devlist = NULL;
fido_dev_t *dev = NULL;
size_t devlist_len = 0;
size_t devlist_len = 0, i;
const char *path;
int r;
@ -234,7 +234,7 @@ find_device(const uint8_t *message, size_t message_len, const char *application,
skdebug(__func__, "found %zu device(s)", devlist_len);
for (size_t i = 0; i < devlist_len; i++) {
for (i = 0; i < devlist_len; i++) {
const fido_dev_info_t *di = fido_dev_info_ptr(devlist, i);
if (di == NULL) {