Skip to content

Commit 869d97c

Browse files
fix C90 decalration error
1 parent 041beb7 commit 869d97c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,8 @@ static int http_request_reauth(const char *url,
24092409

24102410
if (ret == HTTP_RATE_LIMITED) {
24112411
/* Handle rate limiting with retry logic */
2412+
int retry_attempt = http_max_retries - rate_limit_retries + 1;
2413+
24122414
if (rate_limit_retries <= 0) {
24132415
/* Retries are disabled or exhausted */
24142416
if (http_max_retries > 0) {
@@ -2419,8 +2421,6 @@ static int http_request_reauth(const char *url,
24192421
return HTTP_ERROR;
24202422
}
24212423

2422-
int retry_attempt = http_max_retries - rate_limit_retries + 1;
2423-
24242424
trace2_data_intmax("http", the_repository, "http/429-retry-attempt",
24252425
retry_attempt);
24262426

0 commit comments

Comments
 (0)