[openssh-commits] [openssh] 02/03: upstream: rewrite c99-ism

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 15 16:39:38 AEDT 2019


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit d165bb5396e3f718480e6039ca2cf77f5a2c2885
Author: deraadt at openbsd.org <deraadt at openbsd.org>
Date:   Fri Nov 15 05:26:56 2019 +0000

    upstream: rewrite c99-ism
    
    OpenBSD-Commit-ID: d0c70cca29cfa7e6d9f7ec1d6d5dabea112499b3
---
 sk-usbhid.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sk-usbhid.c b/sk-usbhid.c
index e07b49e9..180f2eab 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -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) {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list