Change the loop index from an unsigned int to size_t now that all
authortb <tb@openbsd.org>
Tue, 7 Jun 2022 17:55:08 +0000 (17:55 +0000)
committertb <tb@openbsd.org>
Tue, 7 Jun 2022 17:55:08 +0000 (17:55 +0000)
upper bounds are known to be size_t.

ok jsing

lib/libssl/ssl_txt.c

index cb14ccc..33b067a 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_txt.c,v 1.34 2022/06/07 17:22:22 tb Exp $ */
+/* $OpenBSD: ssl_txt.c,v 1.35 2022/06/07 17:55:08 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -107,7 +107,7 @@ SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x)
 int
 SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
 {
-       unsigned int i;
+       size_t i;
        int ret = 0;
 
        if (x == NULL)