Browse Source

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>
kris/onging/CECPQ3_patch15
David Benjamin 10 years ago
committed by Adam Langley
parent
commit
dd1c246f7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      crypto/bio/bio_test.c

+ 2
- 2
crypto/bio/bio_test.c View File

@@ -102,7 +102,7 @@ static int test_printf() {
char string[1024]; char string[1024];
int ret; int ret;
const uint8_t *contents; const uint8_t *contents;
size_t len;
size_t i, len;


bio = BIO_new(BIO_s_mem()); bio = BIO_new(BIO_s_mem());
if (!bio) { if (!bio) {
@@ -110,7 +110,7 @@ static int test_printf() {
return 0; 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)) { if (kLengths[i] >= sizeof(string)) {
fprintf(stderr, "Bad test string length\n"); fprintf(stderr, "Bad test string length\n");
return 0; return 0;


Loading…
Cancel
Save