Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-08-05 02:24:41 +0400
committerAdam Langley <agl@google.com>2014-08-05 02:34:50 +0400
commitdd1c246f7f6c3d1c40a99e554df70e116e4dec6a (patch)
treeb09f7222e375de30739df21cb74d2b50f0f38c1e /crypto/bio
parentaa4efe76694725ad242f763d004d538ccbba6533 (diff)
Fix C99-ism in bio_test.c.
Change-Id: I7cd91d79f3a014de367976318c860914dd4c2f49 Reviewed-on: https://boringssl-review.googlesource.com/1392 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bio_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bio_test.c b/crypto/bio/bio_test.c
index a8e46abd..f3075b81 100644
--- a/crypto/bio/bio_test.c
+++ b/crypto/bio/bio_test.c
@@ -102,7 +102,7 @@ static int test_printf() {
char string[1024];
int ret;
const uint8_t *contents;
- size_t len;
+ size_t i, len;
bio = BIO_new(BIO_s_mem());
if (!bio) {
@@ -110,7 +110,7 @@ static int test_printf() {
return 0;
}
- for (size_t i = 0; i < sizeof(kLengths) / sizeof(kLengths[0]); i++) {
+ for (i = 0; i < sizeof(kLengths) / sizeof(kLengths[0]); i++) {
if (kLengths[i] >= sizeof(string)) {
fprintf(stderr, "Bad test string length\n");
return 0;