summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-04-17 15:40:03 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2017-04-17 15:40:03 +0100
commit86536c7e45cce275f4aef187b44eb21f2304489a (patch)
tree9b8afbdb565db6e0e15632ddd30fe39ef8b3df86
parent48f09c6c475e158588df49cd978553fbb0d1a603 (diff)
downloadlibgit2-ethomson/win32_posix.tar.gz
win32: `remediation` not `cleanup`ethomson/win32_posix
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.
-rw-r--r--src/win32/posix_w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index c7094dbb9..e4fe4142c 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -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; \