diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-03 22:00:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-03 22:00:57 +0000 |
commit | 413924069c07a25cef98b602434091e9b5dea9bf (patch) | |
tree | ab97cafee1c9512fda1cb5f0a063d906fd7f36d9 /usr.bin/ssh/sk-usbhid.c | |
parent | 90ca5606a6e7ea8372d8b4a71fd7699b35a4cfd7 (diff) |
Many downstreams expect ssh to compile as non-C99...
Diffstat (limited to 'usr.bin/ssh/sk-usbhid.c')
-rw-r--r-- | usr.bin/ssh/sk-usbhid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sk-usbhid.c b/usr.bin/ssh/sk-usbhid.c index d545029be13..ed6c1484305 100644 --- a/usr.bin/ssh/sk-usbhid.c +++ b/usr.bin/ssh/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 @@ -467,7 +467,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; @@ -488,7 +488,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; |