diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2021-11-03 23:00:56 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-11-06 11:56:09 +0100 |
commit | 59c60f96fee321c7f38f00372826d37f289534af (patch) | |
tree | 781e0dde7982d9fbe250ba89adfa6e8c9529a55e | |
parent | Skip getline() on HP-UX 10.x. (diff) | |
download | openssh-59c60f96fee321c7f38f00372826d37f289534af.tar.xz openssh-59c60f96fee321c7f38f00372826d37f289534af.zip |
upstream: Many downstreams expect ssh to compile as non-C99...
OpenBSD-Commit-ID: e6aa3e08bda68e5fb838fc8a49b1d2dfc38ee783
-rw-r--r-- | sk-usbhid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c index 6d69d321c..bfa1d1ed1 100644 --- a/sk-usbhid.c +++ b/sk-usbhid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sk-usbhid.c,v 1.33 2021/11/02 22:56:40 djm Exp $ */ +/* $OpenBSD: sk-usbhid.c,v 1.34 2021/11/03 22:00:56 deraadt Exp $ */ /* * Copyright (c) 2019 Markus Friedl * Copyright (c) 2020 Pedro Martelletto @@ -510,7 +510,7 @@ check_sk_options(fido_dev_t *dev, const char *opt, int *ret) fido_cbor_info_t *info; char * const *name; const bool *value; - size_t len; + size_t len, i; int r; *ret = -1; @@ -531,7 +531,7 @@ check_sk_options(fido_dev_t *dev, const char *opt, int *ret) name = fido_cbor_info_options_name_ptr(info); value = fido_cbor_info_options_value_ptr(info); len = fido_cbor_info_options_len(info); - for (size_t i = 0; i < len; i++) { + for (i = 0; i < len; i++) { if (!strcmp(name[i], opt)) { *ret = value[i]; break; |