Skip to content

Commit

Permalink
update to c99 standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalgust committed Dec 15, 2020
1 parent 1923c8e commit 0503e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minijvm/c/utils/https/ssl_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ int sslc_init(SSLC_Entry *entry) {
ca_inited = 1;
int ca_len = 0;
int lenarr[ca_der_count];
for (int i = 0; i < ca_der_count; i++) {
for (i = 0; i < ca_der_count; i++) {
char *str = ca_ders[i];
lenarr[i] = strlen(str);
ca_len += lenarr[i];
Expand All @@ -1214,7 +1214,7 @@ int sslc_init(SSLC_Entry *entry) {
}
memset(ca_crt_rsa, 0, ca_crt_rsa_size);
int p = 0;
for (int i = 0; i < ca_der_count; i++) {
for (i = 0; i < ca_der_count; i++) {
memmove(ca_crt_rsa + p, ca_ders[i], lenarr[i]);
p += lenarr[i];
}
Expand Down

0 comments on commit 0503e85

Please sign in to comment.