diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-14 22:54:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-14 22:54:50 +0100 |
commit | 4b6a26a8b9379b725003413ea0b4daf33f5852c0 (patch) | |
tree | db4b85baa41a3c0ba727cd3f25e20714f28817c6 /lib/rename.c | |
parent | 70c4fad73420d34e15234408ce26f59f04d99b3b (diff) | |
download | curl-bagder/CURLX_UNICODEFREE.tar.gz |
multibyte: turn the unicodefree macro into upperbagder/CURLX_UNICODEFREE
CURLX_UNICODEFREE() is the name now to make it more obvious to users
that this is a macro and not a plain or pretend-to-be function call.
Suggested-by: Gisle Vanem
Ref: #6457
Diffstat (limited to 'lib/rename.c')
-rw-r--r-- | lib/rename.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rename.c b/lib/rename.c index f858d4369..7dc76fab0 100644 --- a/lib/rename.c +++ b/lib/rename.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2020 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -49,14 +49,14 @@ int Curl_rename(const char *oldpath, const char *newpath) for(;;) { timediff_t diff; if(MoveFileEx(tchar_oldpath, tchar_newpath, MOVEFILE_REPLACE_EXISTING)) { - curlx_unicodefree(tchar_oldpath); - curlx_unicodefree(tchar_newpath); + CURLX_UNICODEFREE(tchar_oldpath); + CURLX_UNICODEFREE(tchar_newpath); break; } diff = Curl_timediff(Curl_now(), start); if(diff < 0 || diff > max_wait_ms) { - curlx_unicodefree(tchar_oldpath); - curlx_unicodefree(tchar_newpath); + CURLX_UNICODEFREE(tchar_oldpath); + CURLX_UNICODEFREE(tchar_newpath); return 1; } Sleep(1); |