Skip to content

Commit d3bc31c

Browse files
authored
Fix C99 compatibility
1 parent 891467e commit d3bc31c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ngx_http_auth_jwt_binary_converters.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ int hex_to_binary( const char* str, u_char* buf, int len )
3838
if (odd) {
3939
return -1;
4040
}
41-
42-
for (int i = 0; i < len; i += 2) {
41+
42+
int i;
43+
for (i = 0; i < len; i += 2) {
4344
hex_char_to_binary( *(str + i), &high );
4445
hex_char_to_binary( *(str + i + 1 ), &low );
4546

4647
*cpy++ = low | (high << 4);
4748
}
4849
return 0;
49-
}
50+
}

0 commit comments

Comments
 (0)