mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 16:34:37 +00:00
win32: remediation
not cleanup
The `remediation` function is run in the retry loop in order to attempt to fix any problems that the prior run encountered. There is nothing "cleaned up". Clarify the name.
This commit is contained in:
parent
48f09c6c47
commit
86536c7e45
@ -160,11 +160,11 @@ GIT_INLINE(bool) last_error_retryable(void)
|
||||
os_error == ERROR_ACCESS_DENIED);
|
||||
}
|
||||
|
||||
#define do_with_retries(fn, cleanup) \
|
||||
#define do_with_retries(fn, remediation) \
|
||||
do { \
|
||||
int __tries, __ret; \
|
||||
for (__tries = 0; __tries < git_win32__retries; __tries++) { \
|
||||
if (__tries && (__ret = (cleanup)) != 0) \
|
||||
if (__tries && (__ret = (remediation)) != 0) \
|
||||
return __ret; \
|
||||
if ((__ret = (fn)) != GIT_RETRY) \
|
||||
return __ret; \
|
||||
|
Loading…
Reference in New Issue
Block a user