mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-03 08:12:05 +00:00
upstream: rewrite c99-ism
OpenBSD-Commit-ID: d0c70cca29cfa7e6d9f7ec1d6d5dabea112499b3
This commit is contained in:
parent
03e06dd0e6
commit
d165bb5396
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user